From ce9194abe4c369c455cca9f1d88c25b70db031e6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 23 Dec 2018 13:07:11 -0500 Subject: Suppress another warning --- setup.cfg | 3 +++ tests/conftest.py | 1 + 2 files changed, 4 insertions(+) diff --git a/setup.cfg b/setup.cfg index 0ab65b0e..8b03a02a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,6 +2,9 @@ addopts = -q -n3 --strict --no-flaky-report -rfe --failed-first markers = expensive: too slow to run during "make smoke" +# How come this warning is suppressed successfully here, but not in conftest.py?? +filterwarnings = + ignore:dns.hash module will be removed:DeprecationWarning [pep8] # E265 block comment should start with '# ' diff --git a/tests/conftest.py b/tests/conftest.py index 2c30a2d7..c883ef7b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -26,6 +26,7 @@ def set_warnings(): # setuptools/py33compat.py:54: DeprecationWarning: The value of convert_charrefs will become # True in 3.5. You are encouraged to set the value explicitly. # unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape) + # How come this warning is successfully suppressed here, but not in setup.cfg?? warnings.filterwarnings( "ignore", category=DeprecationWarning, -- cgit v1.2.1