[issue16312] New command line option supported by unittest.main() for running initialization code before tests

Michael Foord report at bugs.python.org
Fri Oct 26 19:22:31 CEST 2012


Michael Foord added the comment:

I would do this with a module level (global) flag as to whether the initial set up has been done and a BaseTestCase class that checks this flag and calls a set up function if it hasn't been done yet (and then sets the flag).

----------

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


More information about the Python-bugs-list mailing list