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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17974>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to