diff options
Diffstat (limited to 'Lib/test/test_winreg.py')
-rw-r--r-- | Lib/test/test_winreg.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py index f2ec2a8c0f..1dbccc0027 100644 --- a/Lib/test/test_winreg.py +++ b/Lib/test/test_winreg.py @@ -1,12 +1,15 @@ # Test the windows specific win32reg module. # Only win32reg functions not hit here: FlushKey, LoadKey and SaveKey -from _winreg import * import os, sys import unittest - from test import test_support +#Do this first so test will be skipped if module doesn't exist +test_support.import_module('_winreg') +#Now import everything +from _winreg import * + test_key_name = "SOFTWARE\\Python Registry Test Key - Delete Me" test_data = [ |