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 Arfrever, chris.jerdonek, pitrou, r.david.murray, trent
Date 2012-09-19.06:55:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348037745.31.0.951655702005.issue15967@psf.upfronthosting.co.za>
In-reply-to
Content
> Personally I think the best solution is to have the test framework allocate a single test directory

This is partially done.  See here:

http://hg.python.org/cpython/file/19c74cadea95/Lib/test/regrtest.py#l1810

# Run the tests in a context manager that temporary changes the CWD to a
# temporary and writable directory.

regrtest sets things up such that the current working directory is supposed to be this temp directory (constructed from _make_temp_dir_for_build()).  But the tests adhere to this only weakly.  Many or most tests create their own temp directory rather than relying on the caller having set the current working directory to a temp directory.  If the tests used a common API, we could control this behavior globally.
History
Date User Action Args
2012-09-19 06:55:45chris.jerdoneksetrecipients: + chris.jerdonek, pitrou, trent, Arfrever, r.david.murray
2012-09-19 06:55:45chris.jerdoneksetmessageid: <1348037745.31.0.951655702005.issue15967@psf.upfronthosting.co.za>
2012-09-19 06:55:44chris.jerdoneklinkissue15967 messages
2012-09-19 06:55:44chris.jerdonekcreate