[issue9412] test_smtpd leaks references

Antoine Pitrou report at bugs.python.org
Thu Jul 29 13:53:40 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> That's odd. I didn't run the refcount tests because I was only adding
> Python code.

That's not odd. A reference leak can indicate that some objects hang in
memory permanently rather than being cleaned up after the test run.
Looking at the code you added, DummyServer.messages will slowly
accumulate more and more Python objects as the tests get run several
times.
(it's not necessarily the only cause of the refleak, though)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9412>
_______________________________________


More information about the Python-bugs-list mailing list