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

Piotr Dobrogost report at bugs.python.org
Wed Oct 24 21:58:35 CEST 2012


New submission from Piotr Dobrogost:

When running tests bundled with a library it would be useful to be able to run some initialization code before tests are being run so that one can configure options pertaining to logging for example.

For this reason it would be useful to have a new command line option handled by unittest.main() for running custom Python module before running tests.

See http://stackoverflow.com/q/8607767/95735

----------
components: Library (Lib)
messages: 173699
nosy: piotr.dobrogost
priority: normal
severity: normal
status: open
title: New command line option supported by unittest.main() for running initialization code before tests
type: enhancement
versions: Python 3.4, Python 3.5

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


More information about the Python-bugs-list mailing list