]> granicus.if.org Git - python/commitdiff
Issue #15599: Increase the switch interval. Several systems cannot handle
authorStefan Krah <skrah@bytereef.org>
Mon, 1 Oct 2012 21:21:45 +0000 (23:21 +0200)
committerStefan Krah <skrah@bytereef.org>
Mon, 1 Oct 2012 21:21:45 +0000 (23:21 +0200)
gil_interval == 1 in extreme situations.

Lib/test/test_threaded_import.py

index 4a5d7bee0998c0e3cf7f68384e9f325f49977d25..0528b139f7b45fe30968796ea52171446176d49c 100644 (file)
@@ -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: