Issue #26939: Add the support.setswitchinterval() function to fix

test_functools hanging on the Android armv7 qemu emulator.
This commit is contained in:
Xavier de Gaye 2016-12-08 11:06:56 +01:00
parent 0d5742dec0
commit 7522ef402c
3 changed files with 23 additions and 1 deletions

View file

@ -1322,7 +1322,7 @@ class TestLRU:
f.cache_clear()
orig_si = sys.getswitchinterval()
sys.setswitchinterval(1e-6)
support.setswitchinterval(1e-6)
try:
# create n threads in order to fill cache
threads = [threading.Thread(target=full, args=[k])