Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e83ebd9

Browse files
author
Thomas Heller
committed
Fix a bug in the test.
1 parent bbffeb6 commit e83ebd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_winreg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def ReadTestData(self, root_key, subkeystr="sub_key"):
7373

7474
key = OpenKey(root_key, test_key_name)
7575
# Read the sub-keys
76-
with OpenKey(key, "sub_key") as sub_key:
76+
with OpenKey(key, subkeystr) as sub_key:
7777
# Check I can enumerate over the values.
7878
index = 0
7979
while 1:

0 commit comments

Comments
 (0)