New submission from Matthias Klose:

test_zipfile requires write access to the installed location, when trying to 
byte-compile files.

======================================================================
ERROR: test_write_pyfile (test.test_zipfile.PyZipFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.3/test/test_zipfile.py", line 876, in test_write_pyfile
    zipfp.writepy(fn)
  File "/usr/lib/python3.3/zipfile.py", line 1622, in writepy
    fname, arcname = self._get_codename(pathname[0:-3], basename)
  File "/usr/lib/python3.3/zipfile.py", line 1674, in _get_codename
    if _compile(file_py):
  File "/usr/lib/python3.3/zipfile.py", line 1639, in _compile
    py_compile.compile(file, doraise=True, optimize=optimize)
  File "/usr/lib/python3.3/py_compile.py", line 141, in compile
    with open(cfile, 'wb') as fc:
PermissionError: [Errno 13] Permission denied: 
'/usr/lib/python3.3/test/__pycache__/test_zipfile.cpython-33.pyc'

======================================================================
ERROR: test_write_with_optimization (test.test_zipfile.PyZipFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.3/test/test_zipfile.py", line 920, in 
test_write_with_optimization
    zipfp.writepy(packagedir)
  File "/usr/lib/python3.3/zipfile.py", line 1585, in writepy
    fname, arcname = self._get_codename(initname[0:-3], basename)
  File "/usr/lib/python3.3/zipfile.py", line 1689, in _get_codename
    if not _compile(file_py, optimize=self._optimize):
  File "/usr/lib/python3.3/zipfile.py", line 1639, in _compile
    py_compile.compile(file, doraise=True, optimize=optimize)
  File "/usr/lib/python3.3/py_compile.py", line 141, in compile
    with open(cfile, 'wb') as fc:
PermissionError: [Errno 13] Permission denied: 
'/usr/lib/python3.3/email/__pycache__/__init__.cpython-33.pyo'

----------
components: Tests
messages: 187069
nosy: doko
priority: normal
severity: normal
stage: needs patch
status: open
title: test_zipfile: requires write access to test and email.test
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17753>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to