From ee9bdb4f21212f81b341166e9c6407e5e323d34c Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sun, 28 Jul 2019 23:31:12 +0200 Subject: Add filterwarnings to pytest config --- pytest.ini | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pytest.ini') diff --git a/pytest.ini b/pytest.ini index 65cbcffe..81fc1778 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,6 +1,13 @@ [pytest] norecursedirs = dist build .tox .eggs addopts = -v -rxXs -l --junitxml=.test-results/pytest/results.xml --cov=cherrypy --cov-report term-missing:skip-covered --cov-report xml --doctest-modules +filterwarnings = + error + ignore:the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses:DeprecationWarning + ignore:Use cheroot.test.webtest:DeprecationWarning + ignore:Please use assertTrue instead.:DeprecationWarning + ignore:This method will be removed in future versions.*:DeprecationWarning + ignore:Unable to verify that the server is bound on:UserWarning doctest_optionflags = ALLOW_UNICODE ELLIPSIS junit_suite_name = cherrypy_test_suite testpaths = cherrypy/test/ -- cgit v1.2.1