mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 20:12:42 +02:00
Remove module-level ignore::ResourceWarnings
This commit is contained in:
@@ -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."""
|
||||
|
||||
@@ -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."""
|
||||
|
||||
@@ -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."""
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user