mirror of
https://github.com/python/cpython.git
synced 2025-10-04 06:06:44 +00:00
Merge 3.3.
This commit is contained in:
commit
ca1232f7db
1 changed files with 1 additions and 3 deletions
|
@ -225,11 +225,9 @@ 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(new_switchinterval)
|
sys.setswitchinterval(1e-5)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue