[issue19880] unittest: on failure, TestCase.run() keeps a reference to the exception
STINNER Victor
report at bugs.python.org
Wed Dec 4 00:11:16 CET 2013
STINNER Victor added the comment:
contextmanager_leak2.py: even simpler example, storing a current frame in a local variable of the frame is enough.
generator_workaround.patch is another workaround: call frame.clear() when at generator exit to explicitly break the reference cycle.
----------
Added file: http://bugs.python.org/file32954/contextmanager_leak2.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19880>
_______________________________________
More information about the Python-bugs-list
mailing list