Skip to content

Commit 89594c0

Browse files
hugovknedbat
authored andcommitted
Only use sysmon core when available (Python 3.12+)
1 parent 628c1c5 commit 89594c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coverage/collector.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ def __init__(
150150
core = "pytrace"
151151
else:
152152
core = os.getenv("COVERAGE_CORE")
153+
154+
if core == "sysmon" and not env.PYBEHAVIOR.pep669:
155+
core = None
156+
153157
if not core:
154158
# Once we're comfortable with sysmon as a default:
155159
# if env.PYBEHAVIOR.pep669 and self.should_start_context is None:

0 commit comments

Comments
 (0)