Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use "sysmon" core when available (Python 3.12 ) #1747

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Only use sysmon core when available (Python 3.12 )
  • Loading branch information
hugovk authored and nedbat committed Feb 20, 2024
commit b32cc27f631777576f7be911f685659c7082b8ff
4 changes: 4 additions & 0 deletions coverage/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 150,10 @@ def __init__(
core = "pytrace"
else:
core = os.getenv("COVERAGE_CORE")

if core == "sysmon" and not env.PYBEHAVIOR.pep669:
core = None

if not core:
# Once we're comfortable with sysmon as a default:
# if env.PYBEHAVIOR.pep669 and self.should_start_context is None:
Expand Down