This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael.foord
Recipients duncf, eli.bendersky, eric.araujo, michael.foord
Date 2010-11-21.20:11:13
SpamBayes Score 1.3580949e-06
Marked as misclassified No
Message-id <1290370275.09.0.495794681423.issue10470@psf.upfronthosting.co.za>
In-reply-to
Content
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 ..".
History
Date User Action Args
2010-11-21 20:11:15michael.foordsetrecipients: + michael.foord, eric.araujo, eli.bendersky, duncf
2010-11-21 20:11:15michael.foordsetmessageid: <1290370275.09.0.495794681423.issue10470@psf.upfronthosting.co.za>
2010-11-21 20:11:13michael.foordlinkissue10470 messages
2010-11-21 20:11:13michael.foordcreate