Message170706
| 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:45 | chris.jerdonek | set | recipients:
+ chris.jerdonek, pitrou, trent, Arfrever, r.david.murray |
| 2012年09月19日 06:55:45 | chris.jerdonek | set | messageid: <1348037745.31.0.951655702005.issue15967@psf.upfronthosting.co.za> |
| 2012年09月19日 06:55:44 | chris.jerdonek | link | issue15967 messages |
| 2012年09月19日 06:55:44 | chris.jerdonek | create |
|