[issue11798] Test cases not garbage collected after run

Michael Foord report at bugs.python.org
Thu Sep 19 15:40:14 CEST 2013


Michael Foord added the comment:

Ah right, my mistake. Before setUp there shouldn't be test state. (Although tests are free to do whatever they want in __init__ too and I've seen plenty of TestCase subclasses using __init__ when they should be using setUp.)

Essentially though _cleanup is a backwards compatibility feature - and suites that need _cleanup as a public api are already living without testcase dict cleanup.

----------

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


More information about the Python-bugs-list mailing list