Commit 631be012 authored by Hirokazu Yamamoto's avatar Hirokazu Yamamoto

Issue #3806: LockTests in test_imp should be skipped when thread is not available.

Reviewed by Benjamin Peterson.
parent 74ce88fd
...@@ -56,10 +56,16 @@ class ReloadTests(unittest.TestCase): ...@@ -56,10 +56,16 @@ class ReloadTests(unittest.TestCase):
def test_main(): def test_main():
test_support.run_unittest( tests = [
LockTests,
ReloadTests, ReloadTests,
) ]
try:
import thread
except ImportError:
pass
else:
tests.append(LockTests)
test_support.run_unittest(*tests)
if __name__ == "__main__": if __name__ == "__main__":
test_main() test_main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment