New submission from Zachary Ware: ====================================================================== ERROR: test_write_with_optimization (test.test_zipfile.PyZipFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Program Files\Python 3.5\lib\test\test_zipfile.py", line 771, in test_write_with_optimization zipfp.writepy(packagedir) File "C:\Program Files\Python 3.5\lib\zipfile.py", line 1756, in writepy fname, arcname = self._get_codename(initname[0:-3], basename) File "C:\Program Files\Python 3.5\lib\zipfile.py", line 1882, in _get_codename if not _compile(file_py, optimize=self._optimize): File "C:\Program Files\Python 3.5\lib\zipfile.py", line 1819, in _compile py_compile.compile(file, doraise=True, optimize=optimize) File "C:\Program Files\Python 3.5\lib\py_compile.py", line 143, in compile importlib._bootstrap_external._write_atomic(cfile, bytecode, mode) File "<frozen importlib._bootstrap_external>", line 106, in _write_atomic PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python 3.5\\lib\\email\\__pycache__\\__init__.cpython-35.opt-1.pyc.755404532528'
---------- components: Tests, Windows messages: 250624 nosy: paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal stage: needs patch status: open title: test_zipfile failure when run by unprivileged user with installed Python type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25101> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com