Message189279
| 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). |
|