]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) (#112927)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Dec 2023 18:49:39 +0000 (19:49 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Dec 2023 18:49:39 +0000 (19:49 +0100)
commit68657e2b730af6bdcc5d9f01abc174c2fc0b8e95
tree326c50ac25c9156b0adcac8d02c619c6522e3222
parentc108080626b1d64049192f6bf42e0a59ef685ae3
[3.12] gh-109980: Fix test_tarfile_vs_tar on macOS (GH-112905) (#112927)

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]