diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-11 22:29:27 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-11 22:29:27 -0500 |
commit | bf7ac854364bd40a89f2d98432dbaf0ecbfffc89 (patch) | |
tree | 00cf4d1f94e30662177cb9a159a24b1e2a39a7b9 /tests/test_oddball.py | |
parent | 4df493ce30df92064dd75491e30f43b1f1bd442d (diff) | |
download | python-coveragepy-git-bf7ac854364bd40a89f2d98432dbaf0ecbfffc89.tar.gz |
Tweak some coverage pragmas
Diffstat (limited to 'tests/test_oddball.py')
-rw-r--r-- | tests/test_oddball.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py index d188aa78..da6c8fbb 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -179,17 +179,17 @@ class MemoryLeakTest(CoverageTest): # Running the code 10k times shouldn't grow the ram much more than # running it 10 times. ram_growth = (ram_10k - ram_10) - (ram_10 - ram_0) - if ram_growth > 100000: # pragma: if failure - fails += 1 + if ram_growth > 100000: + fails += 1 # pragma: only failure - if fails > 8: # pragma: if failure - self.fail("RAM grew by %d" % (ram_growth)) + if fails > 8: + self.fail("RAM grew by %d" % (ram_growth)) # pragma: only failure class MemoryFumblingTest(CoverageTest): """Test that we properly manage the None refcount.""" - def test_dropping_none(self): + def test_dropping_none(self): # pragma: not covered if not env.C_TRACER: self.skipTest("Only the C tracer has refcounting issues") # TODO: Mark this so it will only be run sometimes. @@ -491,7 +491,7 @@ class GettraceTest(CoverageTest): ) @pytest.mark.expensive - def test_atexit_gettrace(self): + def test_atexit_gettrace(self): # pragma: not covered # This is not a test of coverage at all, but of our understanding # of this edge-case behavior in various Pythons. if env.METACOV: |