From e92ba62e19e569becc3a999a38772c30bd5593d7 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 24 Mar 2025 16:45:06 +0200 Subject: [PATCH] Ignore sys.monitoring warning for 3.11 and earlier in coverage.py config --- .coveragerc | 4 ++++ pyproject.toml | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 7c7502e..f338589 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,3 +5,7 @@ exclude_also = # Don't complain if non-runnable code isn't run: if TYPE_CHECKING: + +[run] +disable_warnings = + no-sysmon diff --git a/pyproject.toml b/pyproject.toml index e1674c3..0d785ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -105,8 +105,6 @@ filterwarnings = [ "error", # https://github.com/dateutil/dateutil/issues/1314 "ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.tz.tz", - # Python <= 3.11 - "ignore:sys.monitoring isn't available, using default core:coverage.exceptions.CoverageWarning", ] testpaths = [ "tests" ]