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 r.david.murray
Recipients r.david.murray
Date 2009-10-04.23:08:30
SpamBayes Score 4.8005827e-10
Marked as misclassified No
Message-id <1254697713.91.0.536595090046.issue7058@psf.upfronthosting.co.za>
In-reply-to
Content
One of the failures when regrtest is run with a read-only Lib results
from test_runpy modifying sys.argv.  Antoine also found cases where
tests modified os.environ in issue 7055.  It seems useful to have
regrtest fix these kinds of environment corruptions when it can, but to
also issue warnings so that the tests in questions can be fixed.  In
some cases the warnings might also reveal bugs in the code being tested,
if the code being tested does a modification it should not be doing.

Attached is a patch that adds save/restore for os.environ and sys.argv,
with warning messages.
History
Date User Action Args
2009-10-04 23:08:34r.david.murraysetrecipients: + r.david.murray
2009-10-04 23:08:33r.david.murraysetmessageid: <1254697713.91.0.536595090046.issue7058@psf.upfronthosting.co.za>
2009-10-04 23:08:32r.david.murraylinkissue7058 messages
2009-10-04 23:08:31r.david.murraycreate