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)
|
self.addCleanup(sys.setswitchinterval, old_interval)
|
||||||
|
|
||||||
# Make the bug more likely to manifest.
|
# Make the bug more likely to manifest.
|
||||||
sys.setswitchinterval(1e-6)
|
test.support.setswitchinterval(1e-6)
|
||||||
|
|
||||||
for i in range(20):
|
for i in range(20):
|
||||||
t = threading.Thread(target=lambda: None)
|
t = threading.Thread(target=lambda: None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user