diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2023-01-09 15:20:31 +0100 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2023-01-09 15:20:31 +0100 |
commit | 649cb51b450d6ac39c3c1b8be5dc0bb4c3e674c9 (patch) | |
tree | 8d2a61447ba2e2362028df038441d1b0694523fb | |
parent | 0a916360e7b3fe71183b825dd6899fc15c03d978 (diff) | |
download | cherrypy-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.ini | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |