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

Michael Foord report at bugs.python.org
Wed Dec 11 00:49:35 CET 2013


Michael Foord added the comment:

I'd be happy with a doc change from "fixture" to instance (or maybe add instance in parentheses). I'd rather a simple change than making the documentation much longer.

The reason for a separate instance per test is for test isolation. Each test can create and modify instance attributes without them affecting other tests from the same class.

----------

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


More information about the docs mailing list