From: Xavier de Gaye Date: Thu, 8 Dec 2016 11:21:00 +0000 (+0100) Subject: Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator. X-Git-Tag: v3.6.1rc1~338 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb9ab0f50b844ca92c074328a140f67d3690dd9a;p=thirdparty%2FPython%2Fcpython.git Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator. --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 845e7d4bd402..2c2914fd6d89 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)