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, ncoghlan
Date 2012-07-23.04:56:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343019363.13.0.374744497293.issue15376@psf.upfronthosting.co.za>
In-reply-to
Content
I created issue 15415 and uploaded a patch there with this issue in mind.

test_runpy contains supporting _make_pkg() and _del_pkg() methods that,
among other things, create and delete a temp directory.  That logic
would be better handled by a temp directory context manager.

The patch uploaded to issue 15415 creates such a context manager and
also unit-tests it.  It also reduces the duplication of temp
directory logic between test/script_helper.py and test/support.py.
History
Date User Action Args
2012-07-23 04:56:03chris.jerdoneksetrecipients: + chris.jerdonek, ncoghlan
2012-07-23 04:56:03chris.jerdoneksetmessageid: <1343019363.13.0.374744497293.issue15376@psf.upfronthosting.co.za>
2012-07-23 04:56:02chris.jerdoneklinkissue15376 messages
2012-07-23 04:56:02chris.jerdonekcreate