Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e667e66

Browse files
author
Michael W. Hudson
committed
Report refleaks to stderr as the tests run as well as logging them
to a file.
1 parent 800ba23 commit e667e66

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/regrtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ def run_the_test():
508508
deltas.append(sys.gettotalrefcount() - rc - 2)
509509
print >>sys.stderr
510510
if max(map(abs, deltas[-huntrleaks[1]:])) > 0:
511+
print >>sys.stderr, test, 'leaked', \
512+
deltas[-huntrleaks[1]:], 'references'
511513
print >>refrep, test, 'leaked', \
512514
deltas[-huntrleaks[1]:], 'references'
513515
# The end of the huntrleaks hackishness.

0 commit comments

Comments
 (0)