diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-08 12:21:00 +0100 |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-08 12:21:00 +0100 |
commit | cb9ab0f50b844ca92c074328a140f67d3690dd9a (patch) | |
tree | 72429d078b350b01318925fadd35ce11c2192b01 | |
parent | f79606debd70b4ee65df6928d1090b5ebc7a8047 (diff) | |
download | cpython-git-cb9ab0f50b844ca92c074328a140f67d3690dd9a.tar.gz |
Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator.
-rw-r--r-- | Lib/test/test_threading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 845e7d4bd4..2c2914fd6d 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) |