summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threaded_import.py
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-10-01 21:21:45 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-10-01 21:21:45 (GMT)
commit219c7b90d0d2e1eda3a76e2d777240c005c658cb (patch)
tree1111e2144fff34b19c7952b59dbb7f675d6768e3 /Lib/test/test_threaded_import.py
parenteb70be2b46e12ab81a80342906f63ee9c9b6ea3d (diff)
downloadcpython-219c7b90d0d2e1eda3a76e2d777240c005c658cb.zip
cpython-219c7b90d0d2e1eda3a76e2d777240c005c658cb.tar.gz
cpython-219c7b90d0d2e1eda3a76e2d777240c005c658cb.tar.bz2
Issue #15599: Increase the switch interval. Several systems cannot handle
gil_interval == 1 in extreme situations.
Diffstat (limited to 'Lib/test/test_threaded_import.py')
-rw-r--r--Lib/test/test_threaded_import.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py
index 4a5d7be..0528b13 100644
--- a/Lib/test/test_threaded_import.py
+++ b/Lib/test/test_threaded_import.py
@@ -225,11 +225,9 @@ class ThreadedImportTests(unittest.TestCase):
@reap_threads
def test_main():
old_switchinterval = None
- # Issue #15599: FreeBSD/KVM cannot handle gil_interval == 1.
- new_switchinterval = 0.00001 if 'freebsd' in sys.platform else 0.00000001
try:
old_switchinterval = sys.getswitchinterval()
- sys.setswitchinterval(new_switchinterval)
+ sys.setswitchinterval(1e-5)
except AttributeError:
pass
try: