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 michael.foord
Recipients barry, berker.peksag, ezio.melotti, michael.foord, pitrou, serhiy.storchaka
Date 2013-05-15.09:36:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368610587.08.0.548257304266.issue17974@psf.upfronthosting.co.za>
In-reply-to
Content
Discovery from a module importing main doesn't make sense (although from a *script* importing main it does).

So long as "python -m unittest -v" continues to launch discovery, and the "positional argument" form of discovery still works, then the new patch looks good. I'll try it out and confirm.

In general I agree with Antoine, the best way to improve the implementation of unittest.main is to provide a new discovery script (with supporting code that is then much easier to extend).
History
Date User Action Args
2013-05-15 09:36:27michael.foordsetrecipients: + michael.foord, barry, pitrou, ezio.melotti, berker.peksag, serhiy.storchaka
2013-05-15 09:36:27michael.foordsetmessageid: <1368610587.08.0.548257304266.issue17974@psf.upfronthosting.co.za>
2013-05-15 09:36:27michael.foordlinkissue17974 messages
2013-05-15 09:36:26michael.foordcreate