Skip to content

ci: drop pytest-cov dynamic contexts - #337

Closed
henryiii wants to merge 1 commit into
pypa:mainfrom
henryiii:ci/drop-cov-context
Closed

ci: drop pytest-cov dynamic contexts#337
henryiii wants to merge 1 commit into
pypa:mainfrom
henryiii:ci/drop-cov-context

Conversation

@henryiii

@henryiii henryiii commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

All tests fail on Python 3.14 and 3.15 on main. coverage 7.15 uses the sysmon core by default on 3.14+, and that core does not support dynamic contexts. Each test triggers CoverageWarning: Dynamic contexts aren't supported with core=sysmon, which filterwarnings = ["error"] turns into an error — 812 errors per run.

This removes --cov-context=test, and the html.show_contexts option that only had an effect together with it.

Reproduced with coverage==7.15.3 on 3.14 (812 errors), and confirmed the removal makes the suite pass.

Note: the Build & verify failure on main is separate, and #338 fixes it.

coverage 7.15 uses the sysmon core by default on Python 3.14+, which does
not support dynamic contexts. The resulting CoverageWarning becomes an
error through filterwarnings, so every test fails on 3.14 and 3.15.

Remove --cov-context=test, and the html.show_contexts option that only
had an effect together with it.

Assisted-by: ClaudeCode:claude-opus-5
@henryiii henryiii closed this Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant