summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2023-01-09 15:20:31 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2023-01-09 15:20:31 +0100
commit649cb51b450d6ac39c3c1b8be5dc0bb4c3e674c9 (patch)
tree8d2a61447ba2e2362028df038441d1b0694523fb
parent0a916360e7b3fe71183b825dd6899fc15c03d978 (diff)
downloadcherrypy-git-649cb51b450d6ac39c3c1b8be5dc0bb4c3e674c9.tar.gz
Suppress cheroot-caused ResourceWarning in pytest
It is related to the `webtest` helper not closing the connection on read errors / broken connection.
-rw-r--r--pytest.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/pytest.ini b/pytest.ini
index 3c88f9d0..53e18e20 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -62,6 +62,10 @@ filterwarnings =
# TODO: Replace the use of `cgi`. It seems untrivial.
ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning
+ # TODO: Remove once `cheroot.webtest._open_url_once` is fixed to release
+ # TODO: connection properly.
+ ignore:unclosed <socket.socket fd=:ResourceWarning
+
junit_duration_report = call
junit_family = xunit2
junit_suite_name = cherrypy_test_suite