From 3bae7f06868553b006915f05ff14d86163f59a7d Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sun, 17 Jan 2021 02:51:53 +0100 Subject: [PATCH] Ignore pytest 6.2.0 resource warnings under py 3.8 Refs: * #1897 * https://docs.pytest.org/en/stable/usage.html#unraisable * https://github.com/pytest-dev/pytest/issues/5299 --- pytest.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pytest.ini b/pytest.ini index 909f146c5..89197092d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -33,6 +33,13 @@ addopts = doctest_optionflags = ALLOW_UNICODE ELLIPSIS filterwarnings = error + + # pytest>=6.2.0 under Python 3.8: + # Ref: https://docs.pytest.org/en/stable/usage.html#unraisable + # Ref: https://github.com/pytest-dev/pytest/issues/5299 + ignore:Exception ignored in. :pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception + ignore:Exception ignored in. <_io.FileIO .closed.>:pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception + ignore:Use cheroot.test.webtest:DeprecationWarning ignore:This method will be removed in future versions.*:DeprecationWarning ignore:Unable to verify that the server is bound on:UserWarning