summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-08 10:06:56 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-08 10:06:56 (GMT)
commit7522ef402c324481fabd841a89810fd944cd3cec (patch)
tree38fbf75e9d4d65c0273beef7bc571c99eb9981a9 /Lib/test/test_functools.py
parent0d5742dec0a44c6fdbb544bc683855ff78554e72 (diff)
downloadcpython-7522ef402c324481fabd841a89810fd944cd3cec.zip
cpython-7522ef402c324481fabd841a89810fd944cd3cec.tar.gz
cpython-7522ef402c324481fabd841a89810fd944cd3cec.tar.bz2
Issue #26939: Add the support.setswitchinterval() function to fix
test_functools hanging on the Android armv7 qemu emulator.
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r--Lib/test/test_functools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index 75427df..ba2a52f 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -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])