Cover is run on 2.7, so mark 3-only lines as no cover

This commit is contained in:
Erica Portnoy 2018-11-02 12:36:42 -07:00
parent 28c117abe0
commit d02ea812a5
7 changed files with 7 additions and 7 deletions

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):