[issue17974] Migrate unittest to argparse

Michael Foord report at bugs.python.org
Wed May 15 11:36:27 CEST 2013


Michael Foord added the comment:

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

----------

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


More information about the Python-bugs-list mailing list