summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-12 18:27:48 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-12 18:27:48 (GMT)
commite667e665070624f9cceaa87f15328ec5d1031ba0 (patch)
tree7a084dbcce391162aa51dfdb6a6641935ec60655 /Lib
parent800ba2375a970ca6095465021aa4d8e72279cd9f (diff)
downloadcpython-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.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py2
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.