From f455d9a4e2b7d06f2ef6ee8033a1dfaf26d5789a Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 12 Aug 2026 14:32:01 -0400 Subject: [PATCH] ci: drop pytest-cov dynamic contexts 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 --- noxfile.py | 2 -- pyproject.toml | 1 - 2 files changed, 3 deletions(-) diff --git a/noxfile.py b/noxfile.py index 59e8883..440d767 100755 --- a/noxfile.py +++ b/noxfile.py @@ -48,7 +48,6 @@ def test(session: nox.Session) -> None: f"--cov-report=html:{htmlcov_output}", f"--cov-report=xml:{xmlcov_output}", "--cov-report=term-missing", - "--cov-context=test", "tests/", *session.posargs, ) @@ -71,7 +70,6 @@ def minimums(session: nox.Session) -> None: "--cov", f"--cov-report=xml:{xmlcov_output}", "--cov-report=term-missing", - "--cov-context=test", "tests/", *session.posargs, ) diff --git a/pyproject.toml b/pyproject.toml index 1ae829a..936c240 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,7 +111,6 @@ docstring-code-format = true [tool.coverage] run.branch = true run.source_pkgs = ["pyproject_metadata"] -html.show_contexts = true report.show_missing = true report.exclude_also = [ "if typing.TYPE_CHECKING:",