From b12f189e8ed34b31438b8cca19133b74f7d67f90 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 28 Feb 2021 09:02:01 -0500 Subject: [PATCH] test: fix a few metacov exclusions --- coverage/backward.py | 2 +- metacov.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coverage/backward.py b/coverage/backward.py index 3b21fc99f..ac781ab96 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -78,7 +78,7 @@ try: import reprlib -except ImportError: # pragma: part covered +except ImportError: # pragma: not covered # We need this on Python 2, but in testing environments, a backport is # installed, so this import isn't used. import repr as reprlib diff --git a/metacov.ini b/metacov.ini index 7045338e6..47ed31344 100644 --- a/metacov.ini +++ b/metacov.ini @@ -50,6 +50,7 @@ exclude_lines = # Lines that we can't run during metacov. pragma: no metacov pytest.mark.skipif\(env.METACOV + if not env.METACOV: # These lines only happen if tests fail. raise AssertionError @@ -74,7 +75,6 @@ partial_branches = pragma: if failure pragma: part started if env.TESTING: - if not env.METACOV if .* env.JYTHON if .* env.IRONPYTHON