diff options
author | Michael W. Hudson <mwh@python.net> | 2004-08-12 18:27:48 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2004-08-12 18:27:48 (GMT) |
commit | e667e665070624f9cceaa87f15328ec5d1031ba0 (patch) | |
tree | 7a084dbcce391162aa51dfdb6a6641935ec60655 | |
parent | 800ba2375a970ca6095465021aa4d8e72279cd9f (diff) | |
download | cpython-e667e665070624f9cceaa87f15328ec5d1031ba0.zip cpython-e667e665070624f9cceaa87f15328ec5d1031ba0.tar.gz cpython-e667e665070624f9cceaa87f15328ec5d1031ba0.tar.bz2 |
Report refleaks to stderr as the tests run as well as logging them
to a file.
-rwxr-xr-x | Lib/test/regrtest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index fc7c633..7e83775 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -508,6 +508,8 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False): deltas.append(sys.gettotalrefcount() - rc - 2) print >>sys.stderr if max(map(abs, deltas[-huntrleaks[1]:])) > 0: + print >>sys.stderr, test, 'leaked', \ + deltas[-huntrleaks[1]:], 'references' print >>refrep, test, 'leaked', \ deltas[-huntrleaks[1]:], 'references' # The end of the huntrleaks hackishness. |