Kaydet (Commit) 0b90d663 authored tarafından Stefan Krah's avatar Stefan Krah

Issue #15599: FreeBSD on KVM cannot handle a very low switch interval.

üst d89774e1
...@@ -225,9 +225,11 @@ class ThreadedImportTests(unittest.TestCase): ...@@ -225,9 +225,11 @@ class ThreadedImportTests(unittest.TestCase):
@reap_threads @reap_threads
def test_main(): def test_main():
old_switchinterval = None 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: try:
old_switchinterval = sys.getswitchinterval() old_switchinterval = sys.getswitchinterval()
sys.setswitchinterval(0.00000001) sys.setswitchinterval(new_switchinterval)
except AttributeError: except AttributeError:
pass pass
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment