mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator.
This commit is contained in:
parent
f79606debd
commit
cb9ab0f50b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user