STINNER Victor added the comment:

When calling gc.collect() after each test, I don't see any leak anymore.

doTest() has a small leak: it prepends a path to sys.path, but it never removes 
it.

Try attached leak2.py: it displays something like +254 kB. Uncomment the two 
following lines and the output will be close to +0 kB.

        #sys.path = old_path
    #gc.collect()

----------
nosy: +haypo
Added file: http://bugs.python.org/file38675/leak2.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23769>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to