[issue19950] Document that unittest.TestCase.__init__ is called once per test

Claudiu.Popa report at bugs.python.org
Sun Apr 27 11:59:39 CEST 2014


Claudiu.Popa added the comment:

In Python 3 docs there is a hint in the documentation for `loadTestsFromModule`:

"This method searches module for classes derived from TestCase and creates an instance of the class for each test method defined for the class."

The phrase with a fixture per test from Python 2 docs is gone though. It would be nice if the same explanation from loadTestsFromModule could be applied to TestCase documentation.

----------

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


More information about the Python-bugs-list mailing list