From: Thomas Heller Date: Thu, 24 Jan 2008 10:31:31 +0000 (+0000) Subject: Fix a bug in the test. X-Git-Tag: v3.0a3~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e83ebd9ab10adc43b0e6368c6985a4a90a85747f;p=thirdparty%2FPython%2Fcpython.git Fix a bug in the test. --- diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py index 3f73c74b0233..174d7bcee80f 100644 --- a/Lib/test/test_winreg.py +++ b/Lib/test/test_winreg.py @@ -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: