mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Issue #26939: Add the support.setswitchinterval() function to fix
test_functools hanging on the Android armv7 qemu emulator.
This commit is contained in:
parent
0d5742dec0
commit
7522ef402c
3 changed files with 23 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue