summaryrefslogtreecommitdiff
path: root/tests/test_oddball.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-11 22:29:27 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-11 22:29:27 -0500
commit48f49108e289eb4c40693a8ace5cb895e38454ae (patch)
treee55735d7246dd9fb3dc0fbfd9be5ec064f21ff8a /tests/test_oddball.py
parent1fa18ca71d04bfe61da84df96754c2d05800f6b1 (diff)
downloadpython-coveragepy-48f49108e289eb4c40693a8ace5cb895e38454ae.tar.gz
Tweak some coverage pragmas
Diffstat (limited to 'tests/test_oddball.py')
-rw-r--r--tests/test_oddball.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py
index d188aa7..da6c8fb 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: