Message166071
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. |
|
Date |
User |
Action |
Args |
2012-07-21 21:13:18 | chris.jerdonek | set | recipients:
+ chris.jerdonek |
2012-07-21 21:13:18 | chris.jerdonek | set | messageid: <1342905198.6.0.0438176504742.issue15415@psf.upfronthosting.co.za> |
2012-07-21 21:13:18 | chris.jerdonek | link | issue15415 messages |
2012-07-21 21:13:17 | chris.jerdonek | create | |
|