Skip to content

Commit 24940b6

Browse files
committed
chore: ignore certain CoverageWarning for certain Py versions
1 parent ed03404 commit 24940b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,10 @@ env = [
267267
filterwarnings = [
268268
"error",
269269
"always::DeprecationWarning",
270-
# This warning is issued in two contexts, and we ignore both:
270+
# The CoverageWarning warning is issued in two contexts:
271271
# Python 3.10, 3.11: sys.monitoring isn't available in this version, using default core (no-sysmon)
272272
# Python 3.12, 3.13: sys.monitoring can't measure branches in this version, using default core (no-sysmon)
273+
"ignore:sys.monitoring isn't available in this version:coverage.exceptions.CoverageWarning",
273274
"always::coverage.exceptions.CoverageWarning",
274275
# https://docs.pytest.org/en/latest/how-to/failures.html#warning-about-unraisable-exceptions-and-unhandled-thread-exceptions
275276
"error::pytest.PytestUnraisableExceptionWarning",

0 commit comments

Comments
 (0)