summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/test_windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_importlib/test_windows.py')
-rw-r--r--Lib/test/test_importlib/test_windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/test_windows.py b/Lib/test/test_importlib/test_windows.py
index c893bcf..005b685 100644
--- a/Lib/test/test_importlib/test_windows.py
+++ b/Lib/test/test_importlib/test_windows.py
@@ -40,7 +40,7 @@ def setup_module(machinery, name, path=None):
else:
root = machinery.WindowsRegistryFinder.REGISTRY_KEY
key = root.format(fullname=name,
- sys_version=sys.version[:3])
+ sys_version='%d.%d' % sys.version_info[:2])
try:
with temp_module(name, "a = 1") as location:
subkey = CreateKey(HKEY_CURRENT_USER, key)