diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-29 06:18:11 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-29 06:18:11 -0500 |
commit | f1dc0948bbfe48e83c6af2520f5bdb50460d587d (patch) | |
tree | 72a3a4b6b4ac0d9452cef1750777aaa6ad36af25 /tests | |
parent | 47578dcdcc8e03bdeb4148a586f224d375099f6e (diff) | |
download | python-coveragepy-git-f1dc0948bbfe48e83c6af2520f5bdb50460d587d.tar.gz |
More-accurate pragmas
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_oddball.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py index 7fc122af..e1099e62 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)) |