]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a bug in the test.
authorThomas Heller <theller@ctypes.org>
Thu, 24 Jan 2008 10:31:31 +0000 (10:31 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 24 Jan 2008 10:31:31 +0000 (10:31 +0000)
Lib/test/test_winreg.py

index 3f73c74b02330cefda69f393c9006116f0be458f..174d7bcee80f35e805be88bfdaceee7dbda2d98c 100644 (file)
@@ -73,7 +73,7 @@ class WinregTests(unittest.TestCase):
 
         key = OpenKey(root_key, test_key_name)
         # Read the sub-keys
-        with OpenKey(key, "sub_key") as sub_key:
+        with OpenKey(key, subkeystr) as sub_key:
             # Check I can enumerate over the values.
             index = 0
             while 1: