[Python-checkins] Python Regression Test Failures refleak (3)
Neal Norwitz
nnorwitz at gmail.com
Sun Apr 9 11:44:28 CEST 2006
On 4/9/06, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> Neal Norwitz wrote:
> > Disregard these leaks, the report is bogus AFAIK.
>
> So how was this report obtained? I just tried to reproduce
> them, and couldn't - but somehow, the report must have
> been created.
The run included Tim's patch that changed run_the_test() in
regrtest.py. I didn't notice there were a few false positives
(AFAICT). I think the problem is that gc.collect() needs to be called
at the end of cleanup() too.
This code:
import codecs
reload(codecs)
increases the total refcount because of gc garbage. If you call
gc.collect() after the reload, there is no leak.
n
More information about the Python-checkins
mailing list