Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator.

This commit is contained in:
Xavier de Gaye 2016-12-08 12:21:00 +01:00
parent f79606debd
commit cb9ab0f50b

View File

@ -462,7 +462,7 @@ class ThreadTests(BaseTestCase):
self.addCleanup(sys.setswitchinterval, old_interval)
# Make the bug more likely to manifest.
sys.setswitchinterval(1e-6)
test.support.setswitchinterval(1e-6)
for i in range(20):
t = threading.Thread(target=lambda: None)