New submission from Chris Jerdonek <chris.jerdo...@gmail.com>: 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. ---------- components: Tests keywords: easy messages: 166071 nosy: cjerdonek priority: normal severity: normal status: open title: Add temp_dir() and change_cwd() to test.support versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15415> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com