]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-114959: tarfile: do not ignore errors when extract a directory on top of...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 3 Feb 2024 16:39:01 +0000 (17:39 +0100)
committerGitHub <noreply@github.com>
Sat, 3 Feb 2024 16:39:01 +0000 (18:39 +0200)
commit8ed20bc8bbf2e41ae2e2dada4279e9a5aa1b6d9a
tree5c1aadd268100b8cf042ec5df7f94ff105632e88
parentc86a9e662f76c8227b22fc6d7255eaa381afbddd
[3.12] gh-114959: tarfile: do not ignore errors when extract a directory on top of a file (GH-114960) (GH-114963)

Also, add tests common to tarfile and zipfile.
(cherry picked from commit 96bce033c4a4da7112792ba335ef3eb9a3eb0da0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/tarfile.py
Lib/test/archiver_tests.py [new file with mode: 0644]
Lib/test/test_tarfile.py
Lib/test/test_zipfile/test_core.py
Misc/NEWS.d/next/Library/2024-02-03-16-59-25.gh-issue-114959.dCfAG2.rst [new file with mode: 0644]