[issue11798] Test cases not garbage collected after run
Antoine Pitrou
report at bugs.python.org
Thu Sep 19 17:16:05 CEST 2013
Antoine Pitrou added the comment:
> Unfortunately the TestSuite.addTests api iterates over a suite to add
> new tests. i.e. the code that builds a TestSuite for module probably
> already iterates over the suites returned by
> TestLoader.loadTestsFromTestCase - so the change would need to be
> more pervasive.
addTests() could easily be tweaked to recognize that it gets passed a
TestSuite, and special-case that.
Also, TestCase objects could probably get an optional "spec" attribute
pointing to their TestSpec.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11798>
_______________________________________
More information about the Python-bugs-list
mailing list