Skip to content

Commit b2e4484

Browse files
committed
Silence a warning specific to Python 3.14
The existing Python 3.13 filterwarning is copied and adapted for the Python 3.14 syntax
1 parent 51b7d62 commit b2e4484

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Tests: copied and adapted Python 3.13 filter warning for Python 3.14, to match
2+
the new syntax
3+
-- by :user:`mr-c`.

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ filterwarnings =
6161
# FIXME: which exposed a possible race condition in test_conn test cleanup.
6262
# Ref: https://github.com/cherrypy/cheroot/issues/734
6363
ignore:Exception ignored in. <function IOBase.__del__:pytest.PytestUnraisableExceptionWarning
64+
# Python 3.14 version of the above
65+
ignore:Exception ignored while calling deallocator <function IOBase.__del__ at:pytest.PytestUnraisableExceptionWarning
6466

6567
# https://docs.pytest.org/en/stable/usage.html#creating-junitxml-format-files
6668
junit_duration_report = call

0 commit comments

Comments
 (0)