[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 80d002edc9c1 by Serhiy Storchaka in branch '3.4':
Issue #25101: Try to create a file to test write access in test_zipfile.
https://hg.python.org/cpython/rev/80d002edc9c1

New changeset fe84898fbe98 by Serhiy Storchaka in branch '2.7':
Issue #25101: Try to create a file to test write access in test_zipfile.
https://hg.python.org/cpython/rev/fe84898fbe98

New changeset 6899bf8d21c3 by Serhiy Storchaka in branch '3.5':
Issue #25101: Try to create a file to test write access in test_zipfile.
https://hg.python.org/cpython/rev/6899bf8d21c3

New changeset 399746fde4f8 by Serhiy Storchaka in branch 'default':
Issue #25101: Try to create a file to test write access in test_zipfile.
https://hg.python.org/cpython/rev/399746fde4f8

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-19 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, using TemporaryFile for testing write access is not good on Windows, 
because there is an issue with TemporaryFile that it repeats attempts to create 
a file in read-only directory.

Updated patch used constant file name.

--
Added file: 
http://bugs.python.org/file40501/test_zipfile_check_write_access_2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch that check write access by just trying to create a file.

--
keywords: +patch
stage: needs patch -> patch review
versions: +Python 2.7, Python 3.4, Python 3.6
Added file: 
http://bugs.python.org/file40455/test_zipfile_check_write_access.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-13 Thread Zachary Ware

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 "", 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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, os.access() doesn't work on Windows.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com