From e667e665070624f9cceaa87f15328ec5d1031ba0 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Thu, 12 Aug 2004 18:27:48 +0000 Subject: Report refleaks to stderr as the tests run as well as logging them to a file. --- Lib/test/regrtest.py | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit v0.12