Skip to content

Commit da7f7f1

Browse files
authored
Ignore sys.monitoring warning for 3.11 and earlier in coverage.py config (#244)
1 parent 9528daf commit da7f7f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
exclude_also =
66
# Don't complain if non-runnable code isn't run:
77
if TYPE_CHECKING:
8+
9+
[run]
10+
disable_warnings =
11+
no-sysmon

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ filterwarnings = [
105105
"error",
106106
# https://github.com/dateutil/dateutil/issues/1314
107107
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.tz.tz",
108-
# Python <= 3.11
109-
"ignore:sys.monitoring isn't available, using default core:coverage.exceptions.CoverageWarning",
110108
]
111109
testpaths = [ "tests" ]
112110

0 commit comments

Comments
 (0)