This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients michael.foord, pitrou, r.david.murray
Date 2012-04-08.23:16:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333927007.96.0.584520357529.issue14533@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2012-04-08 23:16:48r.david.murraysetrecipients: + r.david.murray, pitrou, michael.foord
2012-04-08 23:16:47r.david.murraysetmessageid: <1333927007.96.0.584520357529.issue14533@psf.upfronthosting.co.za>
2012-04-08 23:16:47r.david.murraylinkissue14533 messages
2012-04-08 23:16:47r.david.murraycreate