summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_winreg.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py
index b2f87d5..0eb798f 100644
--- a/Lib/test/test_winreg.py
+++ b/Lib/test/test_winreg.py
@@ -42,18 +42,18 @@ def WriteTestData(root_key):
int_sub_key = int(sub_key)
CloseKey(sub_key)
try:
- QueryInfoKey(int_sub_key)
- raise RuntimeError, "It appears the CloseKey() function does not close the actual key!"
+ QueryInfoKey(int_sub_key)
+ raise RuntimeError, "It appears the CloseKey() function does not close the actual key!"
except EnvironmentError:
- pass
+ pass
# ... and close that key that way :-)
int_key = int(key)
key.Close()
try:
- QueryInfoKey(int_key)
- raise RuntimeError, "It appears the key.Close() function does not close the actual key!"
+ QueryInfoKey(int_key)
+ raise RuntimeError, "It appears the key.Close() function does not close the actual key!"
except EnvironmentError:
- pass
+ pass
def ReadTestData(root_key):
# Check we can get default value for this key.