From 5dbf7010ad9f88019b1b3a7e47aa05278ee00e30 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 6 Feb 2021 13:10:21 -0500 Subject: test: more-uniform skipping of test during metacov --- tests/test_oddball.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/test_oddball.py') 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 -- cgit v1.2.1