mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 16:14:44 +02:00
Cover is run on 2.7, so mark 3-only lines as no cover
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user