diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-06 13:10:21 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-07 17:24:44 -0500 |
commit | 5dbf7010ad9f88019b1b3a7e47aa05278ee00e30 (patch) | |
tree | 27043e6adb379b6d7ba42d3d64e1cc726568884c /tests/test_oddball.py | |
parent | a9b259732e6cc96afd29c902670a0d4c9177714e (diff) | |
download | python-coveragepy-git-5dbf7010ad9f88019b1b3a7e47aa05278ee00e30.tar.gz |
test: more-uniform skipping of test during metacov
Diffstat (limited to 'tests/test_oddball.py')
-rw-r--r-- | tests/test_oddball.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py index afbf232a..f4565607 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -493,11 +493,10 @@ class GettraceTest(CoverageTest): assert expected == out @pytest.mark.expensive - def test_atexit_gettrace(self): # pragma: no metacov + @pytest.mark.skipif(env.METACOV, reason="Can't set trace functions during meta-coverage") + def test_atexit_gettrace(self): # This is not a test of coverage at all, but of our understanding # of this edge-case behavior in various Pythons. - if env.METACOV: - self.skipTest("Can't set trace functions during meta-coverage") self.make_file("atexit_gettrace.py", """\ import atexit, sys |