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
commit31dd92b34e3d09b2110e1592d2931d7572b07191 (patch)
treebf9fce2b1b3a471cc9059e4cce38fe17ad37999e
parent5a8af8616b6638921d0c7bc74537eca372a5eeaf (diff)
downloadpython-coveragepy-git-31dd92b34e3d09b2110e1592d2931d7572b07191.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 39756796..1d4e9efd 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 859648fa..724ae863 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))