diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_imp.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 3a3059e..1e04f5a 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -85,10 +85,16 @@ class ImportTests(unittest.TestCase): def test_main(): - support.run_unittest( - LockTests, - ImportTests, - ) + tests = [ + ImportTests, + ] + try: + import _thread + except ImportError: + pass + else: + tests.append(LockTests) + support.run_unittest(*tests) if __name__ == "__main__": test_main() |