summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 41db85b4..6d3ec318 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -40,7 +40,7 @@ def set_warnings() -> None:
warnings.simplefilter("once", DeprecationWarning)
# Warnings to suppress:
- # How come these warnings are successfully suppressed here, but not in setup.cfg??
+ # How come these warnings are successfully suppressed here, but not in pyproject.toml??
warnings.filterwarnings(
"ignore",
@@ -54,6 +54,13 @@ def set_warnings() -> None:
message=r"module 'sre_constants' is deprecated",
)
+ # From _pytest/assertion/rewrite.py
+ warnings.filterwarnings(
+ "ignore",
+ category=DeprecationWarning,
+ message=r"is deprecated and will be removed in Python 3.14; use ast.Constant instead",
+ )
+
warnings.filterwarnings(
"ignore",
category=pytest.PytestRemovedIn8Warning,