summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-07-04 09:35:21 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-07-04 09:35:21 -0400
commit1115b784fdbb2bfbf4555f590e569b80a6899b6e (patch)
treed233c3ed12ccd84db346e43843500e3bd352153e
parent9c7594514f50263a14fb15514078c1bc0f273bd0 (diff)
downloadpython-coveragepy-1115b784fdbb2bfbf4555f590e569b80a6899b6e.tar.gz
Add a note to MemoryLeakTest about its difficulties.
-rw-r--r--setup.py2
-rw-r--r--test/test_oddball.py8
2 files changed, 8 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 3975679..1d4e9ef 100644
--- a/setup.py
+++ b/setup.py
@@ -132,7 +132,7 @@ try:
setup(**setup_args)
except: # pylint: disable=W0702
# When setup() can't compile, it tries to exit. We'll catch SystemExit
- # here :-(, and try again.
+ # here :-(, and try again.
if 'install' not in sys.argv or 'ext_modules' not in setup_args:
# We weren't trying to install an extension, so forget it.
raise
diff --git a/test/test_oddball.py b/test/test_oddball.py
index 859648f..724ae86 100644
--- a/test/test_oddball.py
+++ b/test/test_oddball.py
@@ -129,7 +129,13 @@ class RecursionTest(CoverageTest):
class MemoryLeakTest(CoverageTest):
- """Attempt the impossible: test that memory doesn't leak."""
+ """Attempt the impossible: test that memory doesn't leak.
+
+ Note: this test is truly unusual, and may fail unexpectedly.
+ In particular, it is known to fail on PyPy if test_oddball.py is run in
+ isolation: https://bitbucket.org/ned/coveragepy/issue/186
+
+ """
def test_for_leaks(self):
lines = list(range(301, 315))