[New-bugs-announce] [issue14533] Modify regrtest to make test_main optional

R. David Murray report at bugs.python.org
Mon Apr 9 01:16:47 CEST 2012


New submission from R. David Murray <rdmurray at bitdance.com>:

The attached patch makes 'test_main' optional for stdlib tests.  If a test module does not have a 'test_main', regrtest will use the unittest loadTestsFromModule loader to load the tests.

This moves us further in the direction of using normal unittest facilities instead of specialized regrtest ones.  Any test module that can be correctly run currently using python unittest -m test.test_xxx could be converted to use this by simply deleting its test_main, thus no longer requiring manual maintenance of the list of tests to run.  Not all tests can be converted that easily, however, since test_main sometimes does some additional things (such as reap_children or reap_threads).

----------
files: dont_require_test_main.patch
keywords: patch
messages: 157816
nosy: michael.foord, pitrou, r.david.murray
priority: normal
severity: normal
status: open
title: Modify regrtest to make test_main optional
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file25159/dont_require_test_main.patch

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


More information about the New-bugs-announce mailing list