mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Cover is run on 2.7, so mark 3-only lines as no cover
This commit is contained in:
parent
28c117abe0
commit
d02ea812a5
7 changed files with 7 additions and 7 deletions
|
|
@ -18,7 +18,7 @@ from acme.magic_typing import List # pylint: disable=unused-import, no-name-in-m
|
|||
|
||||
# turns all ResourceWarnings into errors for this module
|
||||
if six.PY3:
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning")
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
|
||||
|
||||
|
||||
class SSLSocketAndProbeSNITest(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ 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")
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
|
||||
|
||||
|
||||
class ErrorTest(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from acme.magic_typing import Set # pylint: disable=unused-import, no-name-in-mo
|
|||
|
||||
# turns all ResourceWarnings into errors for this module
|
||||
if six.PY3:
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning")
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
|
||||
|
||||
|
||||
class TLSServerTest(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import six
|
|||
|
||||
# turns all ResourceWarnings into errors for this module
|
||||
if six.PY3:
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning")
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
|
||||
|
||||
|
||||
class MapKeysTest(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ VALID_CONFIG = {"rfc2136_server": SERVER, "rfc2136_name": NAME, "rfc2136_secret"
|
|||
|
||||
# turns all ResourceWarnings into errors for this module
|
||||
if six.PY3:
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning")
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
|
||||
|
||||
|
||||
class AuthenticatorTest(test_util.TempDirTestCase, dns_test_common.BaseAuthenticatorTest):
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ 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")
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
|
||||
|
||||
|
||||
class PreArgParseSetupTest(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ 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")
|
||||
pytestmark = pytest.mark.filterwarnings("ignore::ResourceWarning") # pragma: no cover
|
||||
|
||||
|
||||
class TestHandleIdenticalCerts(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Reference in a new issue