This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_zipfile.test_write_filtered_python_package() failed on AppVeyor, Python 3.6
Type: Stage: resolved
Components: Tests, Windows Versions: Python 3.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Priority: normal Keywords:

Created on 2018-05-30 14:30 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg318188 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-05-30 14:30
On my PR 7244, test_zipfile.test_write_filtered_python_package() failed on AppVeyor.

https://ci.appveyor.com/project/python/cpython/build/3.6build16559/job/3lqiymop38oorsn0

======================================================================
ERROR: test_write_filtered_python_package (test.test_zipfile.PyZipFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\cpython\lib\test\test_zipfile.py", line 851, in test_write_filtered_python_package
    zipfp.writepy(packagedir)
  File "C:\projects\cpython\lib\zipfile.py", line 1849, in writepy
    filterfunc=filterfunc)  # Recursive call
  File "C:\projects\cpython\lib\zipfile.py", line 1849, in writepy
    filterfunc=filterfunc)  # Recursive call
  File "C:\projects\cpython\lib\zipfile.py", line 1856, in writepy
    basename)
  File "C:\projects\cpython\lib\zipfile.py", line 1935, in _get_codename
    if _compile(file_py):
  File "C:\projects\cpython\lib\zipfile.py", line 1898, in _compile
    py_compile.compile(file, doraise=True, optimize=optimize)
  File "C:\projects\cpython\lib\py_compile.py", line 143, in compile
    importlib._bootstrap_external._write_atomic(cfile, bytecode, mode)
  File "<frozen importlib._bootstrap_external>", line 119, in _write_atomic
PermissionError: [WinError 5] Access is denied: 'C:\\projects\\cpython\\lib\\test\\test_importlib\\source\\__pycache__\\test_path_hook.cpython-36.pyc.44848936' -> 'C:\\projects\\cpython\\lib\\test\\test_importlib\\source\\__pycache__\\test_path_hook.cpython-36.pyc'
msg321510 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-07-11 22:19
I only saw the failure once.
History
Date User Action Args
2022-04-11 14:59:01adminsetgithub: 77878
2018-07-11 22:19:30vstinnersetstatus: open -> closed
resolution: out of date
messages: + msg321510

stage: resolved
2018-05-30 14:31:16vstinnersettitle: AppVeyor: -> test_zipfile.test_write_filtered_python_package() failed on AppVeyor, Python 3.6
2018-05-30 14:30:59vstinnercreate