New submission from Ezio Melotti <ezio.melo...@gmail.com>: To simplify the tests that require a different CWD I wrote a context manager that allows to change the working directory. I used it on #3426 to test os.path.abspath() with ASCII and non-ASCII CWDs and realized that it can also be used to fix #5684 where a zipfile fails to extract the content of the archive in the CWD if it is read-only.
Patch attached. ---------- assignee: ezio.melotti components: Tests files: tempcwd.patch keywords: needs review, patch, patch messages: 97865 nosy: ezio.melotti, flox priority: normal severity: normal stage: patch review status: open title: Add a context manager to change cwd in test.test_support type: feature request versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15904/tempcwd.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7712> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com