Commit 816471bf authored by Jason Madden's avatar Jason Madden

Disable ThreadTests.test_gettrace_all_threads (py3.12) when coverage is running.

The coverage tracer breaks the test, which has a hard-coded list of functions it expects to find.
parent 92a876ee
...@@ -30,6 +30,7 @@ from .sysinfo import PY38 ...@@ -30,6 +30,7 @@ from .sysinfo import PY38
from .sysinfo import PY39 from .sysinfo import PY39
from .sysinfo import PY310 from .sysinfo import PY310
from .sysinfo import PY311 from .sysinfo import PY311
from .sysinfo import PY312
from .sysinfo import WIN from .sysinfo import WIN
from .sysinfo import OSX from .sysinfo import OSX
...@@ -1212,6 +1213,14 @@ if PY311: ...@@ -1212,6 +1213,14 @@ if PY311:
'test_subprocess.ProcessTestCase.test__use_vfork', 'test_subprocess.ProcessTestCase.test__use_vfork',
] ]
if PY312:
if RUN_COVERAGE:
disabled_tests += [
# This test wants to look for installed tracing functions, and
# having a coverage tracer function installed breaks it.
'test_threading.ThreadTests.test_gettrace_all_threads',
]
if TRAVIS: if TRAVIS:
disabled_tests += [ disabled_tests += [
# These tests frequently break when we try to use newer Travis CI images, # These tests frequently break when we try to use newer Travis CI images,
......
...@@ -68,6 +68,7 @@ PY38 = None ...@@ -68,6 +68,7 @@ PY38 = None
PY39 = None PY39 = None
PY310 = None PY310 = None
PY311 = None PY311 = None
PY312 = None
NON_APPLICABLE_SUFFIXES = () NON_APPLICABLE_SUFFIXES = ()
if sys.version_info[0] == 3: if sys.version_info[0] == 3:
...@@ -89,6 +90,8 @@ if sys.version_info[0] == 3: ...@@ -89,6 +90,8 @@ if sys.version_info[0] == 3:
PY310 = True PY310 = True
if sys.version_info[1] >= 11: if sys.version_info[1] >= 11:
PY311 = True PY311 = True
if sys.version_info[1] >= 12:
PY312 = True
elif sys.version_info[0] == 2: elif sys.version_info[0] == 2:
# Any python 2 # Any python 2
......
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