Skip to content

Commit 9d3bc76

Browse files
committed
Add pytest-cov sysmon flag to pyprompt.toml
As of mid-2025, this feature is available in Python 3.12 and higher, and is reported to help speed up coverage tests.
1 parent c6c0eff commit 9d3bc76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ include = [
1919
]
2020
omit = ["benchmarks/*"]
2121
patch = ["subprocess"]
22+
# Speed up pytest-cov on Python 3.12+ by enabling sys.monitoring if possible.
23+
core = "sysmon"
24+
disable_warnings = ["no-sysmon"]
2225

2326
[tool.coverage.report]
2427
exclude_also = [

0 commit comments

Comments
 (0)