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."""