Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

test_write_filtered_python_package in test_zipfile fails with PermissionError #107914

Copy link
Copy link
Closed
@furkanonder

Description

@furkanonder
Issue body actions

Bug report

Checklist

  • I am confident this is a bug in CPython, not a bug in a third-party project
  • I have searched the CPython issue tracker, and am confident this bug has not been reported before

A clear and concise description of the bug

╰─$ ./python -m test test_zipfile 
0:00:00 load avg: 5.78 Run tests sequentially
0:00:00 load avg: 5.78 [1/1] test_zipfile
test test_zipfile failed -- Traceback (most recent call last):
File "/home/arf/cpython/Lib/test/test_zipfile/test_core.py", line 1375, in test_write_filtered_python_package
  zipfp.writepy(packagedir)
File "/home/arf/cpython/Lib/zipfile/__init__.py", line 2101, in writepy
  fname, arcname = self._get_codename(path[0:-3],
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/arf/cpython/Lib/zipfile/__init__.py", line 2181, in _get_codename
  if _compile(file_py):
     ^^^^^^^^^^^^^^^^^
File "/home/arf/cpython/Lib/zipfile/__init__.py", line 2144, in _compile
  py_compile.compile(file, doraise=True, optimize=optimize)
File "/home/arf/cpython/Lib/py_compile.py", line 172, in compile
  importlib._bootstrap_external._write_atomic(cfile, bytecode, mode)
File "<frozen importlib._bootstrap_external>", line 201, in _write_atomic
PermissionError: [Errno 13] Permission denied: '/home/arf/cpython/Lib/test/__pycache__/_test_atexit.cpython-313.pyc.140634519451056'

test_zipfile failed (1 error)

== Tests result: FAILURE ==

1 test failed:
  test_zipfile

Your environment

  • CPython versions tested on: 3.13.0a0
  • Operating system and architecture: Arch Linux x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesbugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    Status

    Done
    Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.