mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Don't ever report a failure when the sum of the reference count differences
are zero. This should help reduce the false positives. The message about references leaking is maintained to provide as much info as possible rather than simply suppressing the message at the source.
This commit is contained in:
parent
360496d9c0
commit
d9841039db
2 changed files with 4 additions and 3 deletions
|
@ -682,9 +682,10 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
|
|||
deltas.append(sys.gettotalrefcount() - rc - 2)
|
||||
print >> sys.stderr
|
||||
if any(deltas):
|
||||
print >> sys.stderr, test, 'leaked', deltas, 'references'
|
||||
msg = '%s leaked %s references, sum=%s' % (test, deltas, sum(deltas))
|
||||
print >> sys.stderr, msg
|
||||
refrep = open(fname, "a")
|
||||
print >> refrep, test, 'leaked', deltas, 'references'
|
||||
print >> refrep, msg
|
||||
refrep.close()
|
||||
|
||||
def dash_R_cleanup(fs, ps, pic):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue