From 91b3c5d61cbdfd7853bd14d509370e28f0f1ee15 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Mon, 5 Nov 2018 17:41:26 -0800 Subject: [PATCH] remove pytest.mark, move to specific ignore in pytest.ini --- certbot-dns-rfc2136/certbot_dns_rfc2136/dns_rfc2136_test.py | 1 - pytest.ini | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/certbot-dns-rfc2136/certbot_dns_rfc2136/dns_rfc2136_test.py b/certbot-dns-rfc2136/certbot_dns_rfc2136/dns_rfc2136_test.py index 7cb98b25e..89ce3d93e 100644 --- a/certbot-dns-rfc2136/certbot_dns_rfc2136/dns_rfc2136_test.py +++ b/certbot-dns-rfc2136/certbot_dns_rfc2136/dns_rfc2136_test.py @@ -70,7 +70,6 @@ class AuthenticatorTest(test_util.TempDirTestCase, dns_test_common.BaseAuthentic self.auth.perform([self.achall]) -@pytest.mark.filterwarnings("ignore:decodestring:DeprecationWarning") class RFC2136ClientTest(unittest.TestCase): def setUp(self): diff --git a/pytest.ini b/pytest.ini index c35e0de7c..a55d72301 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,7 @@ [pytest] addopts = --numprocesses auto --pyargs # ResourceWarnings are ignored as errors, since they're raised at close +# decodestring: https://github.com/rthalley/dnspython/issues/338 filterwarnings = error + ignore:decodestring:DeprecationWarning