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 eli.bendersky
Recipients duncf, eli.bendersky, eric.araujo, michael.foord
Date 2010-11-21.12:49:19
SpamBayes Score 0.0035702316
Marked as misclassified No
Message-id <1290343760.57.0.451997474215.issue10470@psf.upfronthosting.co.za>
In-reply-to
Content
Attaching a patch to unittest/test/test_program.py that fixes the sys.path warning in regrtest

What happens is that with the new capability added to unittest (running discovery when called as -m without args), a few tests in test_program now cause discovery to run. It's not a problem, but discovery plays with sys.path, which regrtest doesn't like. So I added restoration of sys.path to these tests in a manner similar to what the test/test_discovery.py test does.
History
Date User Action Args
2010-11-21 13:22:23eli.benderskyunlinkissue10470 messages
2010-11-21 12:49:20eli.benderskysetrecipients: + eli.bendersky, eric.araujo, michael.foord, duncf
2010-11-21 12:49:20eli.benderskysetmessageid: <1290343760.57.0.451997474215.issue10470@psf.upfronthosting.co.za>
2010-11-21 12:49:19eli.benderskylinkissue10470 messages
2010-11-21 12:49:19eli.benderskycreate