From b7e0c342134ee2b3d01a668258f75acf7bb9edab Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 13 Dec 2023 06:41:58 -0500 Subject: [PATCH] fix: don't default to sysmon yet --- coverage/collector.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/coverage/collector.py b/coverage/collector.py index 113452733..a9396c407 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -149,10 +149,13 @@ def __init__( else: core = os.getenv("COVERAGE_CORE") if not core: - if env.PYBEHAVIOR.pep669 and self.should_start_context is None: - core = "sysmon" - elif HAS_CTRACER: + # Once we're comfortable with sysmon as a default: + # if env.PYBEHAVIOR.pep669 and self.should_start_context is None: + # core = "sysmon" + if HAS_CTRACER: core = "ctrace" + else: + core = "pytrace" if core == "sysmon": self._trace_class = SysMonitor