summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-11-29 06:18:11 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-11-29 06:18:11 -0500
commit998b4e07d8af4d241e70c7cca18a0f72f8ca74dd (patch)
tree6c7feed9b141e3ecc3b274e7a333861b6f66d3c3 /tests
parent2ac8b14e315c82f7587382d7d0ef06da7e0eae11 (diff)
downloadpython-coveragepy-998b4e07d8af4d241e70c7cca18a0f72f8ca74dd.tar.gz
More-accurate pragmas
Diffstat (limited to 'tests')
-rw-r--r--tests/test_oddball.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py
index 7fc122a..e1099e6 100644
--- a/tests/test_oddball.py
+++ b/tests/test_oddball.py
@@ -176,10 +176,10 @@ 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: only failure
+ if ram_growth > 100000: # pragma: if failure
fails += 1
- if fails > 8: # pragma: only failure
+ if fails > 8: # pragma: if failure
self.fail("RAM grew by %d" % (ram_growth))