[issue12331] lib2to3 and packaging tests fail because they write into protected directory

python272 report at bugs.python.org
Sat Jul 23 23:42:21 CEST 2011


python272 <letters.random13 at 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 <report at bugs.python.org>
<http://bugs.python.org/issue12331>
_______________________________________


More information about the Python-bugs-list mailing list