Skip to content

test_gzip, test_import, test_os.,test_os, test_pathlib and test_tarfile failed on ARM64 Raspbian Debug 3.x #162305

Open

Description

@vstinner

Bug report

ARM64 Raspbian Debug 3.x: https://buildbot.python.org/#/builders/1829/builds/3862

5 tests failed:
    test_gzip test_import test_os.test_os test_pathlib test_tarfile

test.pythoninfo:

os.getresgid: (991, 991, 991)
os.getresuid: (995, 995, 995)
os.getuid: 995
os.umask: 0o077

platform.libc_ver: glibc 2.36
platform.platform: Linux-6.12.115+rpt-rpi-2712-aarch64-with-glibc2.36
platform.freedesktop_os_release[NAME]: Debian GNU/Linux
platform.freedesktop_os_release[VERSION]: 12 (bookworm)

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    testsTests in the Lib/test dir
    on Nov 20, 2026
  2. vstinner commented on Nov 20, 2026

    @vstinner
    MemberAuthor
  3. vstinner commented on Nov 20, 2026

    @vstinner
    MemberAuthor

    Errors are related to file permissions.

    Example of error:

    FAIL: test_file_mode (test.test_tarfile.StreamWriteTest.test_file_mode)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/mnt/ssd/buildbot/buildarea/3.x.savannah-raspbian/build/Lib/test/test_tarfile.py", line 2178, in test_file_mode
        self.assertEqual(mode, 0o644, "wrong file permissions")
        ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: 416 != 420 : wrong file permissions
    

    And:

    FAIL: test_unwritable_directory (test.test_import.PycacheTests.test_unwritable_directory)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/mnt/ssd/buildbot/buildarea/3.x.savannah-raspbian/build/Lib/test/test_import/__init__.py", line 1744, in test_unwritable_directory
        self.assertFalse(os.path.exists(pyc_path),
        ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
                        'bytecode file {!r} for {!r} '
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        'exists'.format(pyc_path, TESTFN))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: True is not false : bytecode file '__pycache__/@test_680561_tmpæ.cpython-316.pyc' for '@test_680561_tmpæ' exists
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions