Commit d6e25ef
committed
Fix 42-minute test-3.12 CI runs with coverage sysmon core
CPython 3.12's settrace-based tracing is pathologically slow under
coverage (CPython gh-107674, coverage.py #1665), making pytest --cov
take ~42 minutes on the 3.12 matrix job vs ~40 seconds elsewhere.
Export COVERAGE_CORE=sysmon on Python 3.12+ so coverage uses the
sys.monitoring core; guarded because sysmon does not exist on <=3.11.
Verified locally: full suite on 3.12 with coverage drops from ~42 min
to 3.6 s with identical line-coverage results.1 parent 18e2d3b commit d6e25ef
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
0 commit comments