summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_winreg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py
index 3f73c74..174d7bc 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: