From cb9ab0f50b844ca92c074328a140f67d3690dd9a Mon Sep 17 00:00:00 2001 From: Xavier de Gaye Date: Thu, 8 Dec 2016 12:21:00 +0100 Subject: [PATCH] Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator. --- Lib/test/test_threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 845e7d4bd40..2c2914fd6d8 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -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)