Kaydet (Commit) 36144098 authored tarafından Hirokazu Yamamoto's avatar Hirokazu Yamamoto

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

Reviewed by Benjamin Peterson.
üst 8530e859
......@@ -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()
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