Remove module-level ignore::ResourceWarnings

This commit is contained in:
Erica Portnoy
2018-11-05 17:28:26 -08:00
parent 79b2ea19fb
commit b7f4b33ffb
7 changed files with 0 additions and 35 deletions
-5
View File
@@ -10,16 +10,11 @@ from six.moves import socketserver #type: ignore # pylint: disable=import-erro
import josepy as jose
import OpenSSL
import pytest
from acme import errors
from acme import test_util
from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-module
# turns all ResourceWarnings into errors for this module
if six.PY3:
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
class SSLSocketAndProbeSNITest(unittest.TestCase):
"""Tests for acme.crypto_util.SSLSocket/probe_sni."""
-5
View File
@@ -3,7 +3,6 @@ import unittest
import josepy as jose
import mock
import pytest
import six
from acme import challenges
@@ -15,10 +14,6 @@ CERT = test_util.load_comparable_cert('cert.der')
CSR = test_util.load_comparable_csr('csr.der')
KEY = test_util.load_rsa_private_key('rsa512_key.pem')
# turns all ResourceWarnings into errors for this module
if six.PY3:
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
class ErrorTest(unittest.TestCase):
"""Tests for acme.messages.Error."""
-5
View File
@@ -13,7 +13,6 @@ from six.moves import socketserver # type: ignore # pylint: disable=import-err
import josepy as jose
import mock
import pytest
import requests
from acme import challenges
@@ -21,10 +20,6 @@ from acme import crypto_util
from acme import test_util
from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-module
# turns all ResourceWarnings into errors for this module
if six.PY3:
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
class TLSServerTest(unittest.TestCase):
"""Tests for acme.standalone.TLSServer."""
-5
View File
@@ -1,13 +1,8 @@
"""Tests for acme.util."""
import unittest
import pytest
import six
# turns all ResourceWarnings into errors for this module
if six.PY3:
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
class MapKeysTest(unittest.TestCase):
"""Tests for acme.util.map_keys."""
@@ -7,7 +7,6 @@ import dns.flags
import dns.rcode
import dns.tsig
import mock
import pytest
import six
from certbot import errors
@@ -21,10 +20,6 @@ NAME = 'a-tsig-key.'
SECRET = 'SSB3b25kZXIgd2hvIHdpbGwgYm90aGVyIHRvIGRlY29kZSB0aGlzIHRleHQK'
VALID_CONFIG = {"rfc2136_server": SERVER, "rfc2136_name": NAME, "rfc2136_secret": SECRET}
# turns all ResourceWarnings into errors for this module
if six.PY3:
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
class AuthenticatorTest(test_util.TempDirTestCase, dns_test_common.BaseAuthenticatorTest):
-5
View File
@@ -7,7 +7,6 @@ import time
import unittest
import mock
import pytest
import six
from acme import messages
@@ -19,10 +18,6 @@ from certbot import errors
from certbot import util
from certbot.tests import util as test_util
# turns all ResourceWarnings into errors for this module
if six.PY3:
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
class PreArgParseSetupTest(unittest.TestCase):
"""Tests for certbot.log.pre_arg_parse_setup."""
-5
View File
@@ -16,7 +16,6 @@ import tempfile
import sys
import josepy as jose
import pytest
import six
from six.moves import reload_module # pylint: disable=import-error
@@ -48,10 +47,6 @@ JWK = jose.JWKRSA.load(test_util.load_vector('rsa512_key.pem'))
RSA2048_KEY_PATH = test_util.vector_path('rsa2048_key.pem')
SS_CERT_PATH = test_util.vector_path('cert_2048.pem')
# turns all ResourceWarnings into errors for this module
if six.PY3:
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
class TestHandleIdenticalCerts(unittest.TestCase):
"""Test for certbot.main._handle_identical_cert_request"""