diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-07-04 09:35:21 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-07-04 09:35:21 -0400 |
commit | 31dd92b34e3d09b2110e1592d2931d7572b07191 (patch) | |
tree | bf9fce2b1b3a471cc9059e4cce38fe17ad37999e | |
parent | 5a8af8616b6638921d0c7bc74537eca372a5eeaf (diff) | |
download | python-coveragepy-git-31dd92b34e3d09b2110e1592d2931d7572b07191.tar.gz |
Add a note to MemoryLeakTest about its difficulties.
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | test/test_oddball.py | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -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)) |