[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2b5a0c4e052b by Éric Araujo in branch '3.2': Stop trying to write into the stdlib during lib2to3 tests (#12331). http://hg.python.org/cpython/rev/2b5a0c4e052b New changeset 7ee8f413188e by Éric Araujo in branch 'default': Stop trying to write into the stdlib during packaging tests (#12331). http://hg.python.org/cpython/rev/7ee8f413188e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a425408f1e52 by Éric Araujo in branch '2.7': Stop trying to write into the stdlib during lib2to3 tests (#12331). http://hg.python.org/cpython/rev/a425408f1e52 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Éric Araujo mer...@netwok.org added the comment: This is now fixed. Let me just eat these words: “This should not be too hard to fix”. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
python272 letters.rando...@gmail.com added the comment: problem exists in python 2.7.2 (should this be reported as a separate issue?) [Python-2.7.2]$ python -m test.regrtest -v test_lib2to3 ... ERROR: test_bom (lib2to3.tests.test_refactor.TestRefactoringTool) ... ERROR: test_crlf_newlines ERROR: test_file_encoding ERROR: test_refactor_file ... e.g., File /usr/local/lib/python2.7/lib2to3/tests/test_refactor.py, line 194, in check_file_refactoring with open(test_file, wb) as fp: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/lib2to3/tests/data/fixers/parrot_example.py' ... [test]# ls -l /usr/local/lib/python2.7/lib2to3/tests/data/fixers/parrot_example.py -rw-r--r-- 1 root root 23 2011-07-23 11:48 /usr/local/lib/python2.7/lib2to3/tests/data/fixers/parrot_example.py -- nosy: +python272 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Some packaging tests also fail, for similar reasons: == ERROR: test_get_distinfo_file (packaging.tests.test_database.TestDistribution) -- Traceback (most recent call last): File /usr/local/lib/python3.3/packaging/tests/test_database.py, line 114, in setUp with open(record_file, 'w') as file: IOError: [Errno 13] Permission denied: '/usr/local/lib/python3.3/packaging/tests/fake_dists/babar-0.1.dist-info/RECORD' -- components: -2to3 (2.x to 3.0 conversion tool) nosy: +eric.araujo title: lib2to3 tests write into protected directory - lib2to3 and packaging tests fail because they write into protected directory ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - tarek components: +Distutils2 nosy: +alexis, tarek stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12331] lib2to3 and packaging tests fail because they write into protected directory
Éric Araujo mer...@netwok.org added the comment: This should not be too hard to fix: I’ll move the directory with the mock projects to a temp dir, add that to sys.path, and then we’ll be able to read and write. -- assignee: tarek - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com