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 chris.jerdonek
Recipients chris.jerdonek
Date 2012-07-21.21:13:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342905198.6.0.0438176504742.issue15415@psf.upfronthosting.co.za>
In-reply-to
Content
This issue is partly in service to issue 15376, which is to refactor test_runpy's walk_package support code into a common location.

Currently, the temp_cwd() context manager in test.support does two things: it creates a temp directory, and it changes the current working directory.

It would be useful and clearer if test.support exposed these two things as separate context managers.  This will both let us simplify the implementation of temp_cwd() and give us an opportunity to increase code reuse between test.support and test.script_helper.  (Currently, test.script_helper has its own version of temp_dir(), whose functionality overlaps with temp_cwd().)

I will upload a patch shortly with tests.
History
Date User Action Args
2012-07-21 21:13:18chris.jerdoneksetrecipients: + chris.jerdonek
2012-07-21 21:13:18chris.jerdoneksetmessageid: <1342905198.6.0.0438176504742.issue15415@psf.upfronthosting.co.za>
2012-07-21 21:13:18chris.jerdoneklinkissue15415 messages
2012-07-21 21:13:17chris.jerdonekcreate