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

Reply via email to