]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) (#112928)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Dec 2023 18:50:10 +0000 (19:50 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Dec 2023 18:50:10 +0000 (19:50 +0100)
commit95f5c8c46c16b53c664d9d86eca2682e31167825
tree5036ff581bc4bd718448f9a7523a03bc67c8187f
parent4cc9e875c2fa6be1759656db4558305e9bb9cb8d
[3.11] gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) (#112928)

gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905)

On recentish macOS versions the system tar
command includes system metadata (ACLs, extended attributes
and resource forks) in the tar archive, which
shutil.make_archive will not do. This can cause
spurious test failures.
(cherry picked from commit dd2ebdf89ff144e89db180bd552c50615f712cb2)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Lib/test/test_shutil.py
Misc/NEWS.d/next/Tests/2023-12-09-21-27-46.gh-issue-109980.y--500.rst [new file with mode: 0644]