[issue10470] python -m unittest ought to default to discovery
Michael Foord
report at bugs.python.org
Sun Nov 21 21:11:15 CET 2010
Michael Foord <michael at voidspace.org.uk> added the comment:
Sorry for the late reply. I don't think the patch as provided is sufficient as it would interfere with people causing unittest.main() directly from a test module. Checking that TestProgram.loader is None is the way to detect we have been launched from the command line via "python -m unittest ..".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10470>
_______________________________________
More information about the Python-bugs-list
mailing list