Repository navigation
gh-162963: Fix test_tarfile_vs_tar on Windows - #162998
Conversation
bsdtar on Windows sometimes wrongly skips a directory with "Can't add archive to itself" when writing the archive to a regular file. Write the archive to stdout instead, so the check is not done.
|
Thanks @asvetlov for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
GH-163002 is a backport of this pull request to the 3.15 branch. |
|
GH-163003 is a backport of this pull request to the 3.14 branch. |
…3002) gh-162963: Fix test_tarfile_vs_tar on Windows (GH-162998) bsdtar on Windows sometimes wrongly skips a directory with "Can't add archive to itself" when writing the archive to a regular file. Write the archive to stdout instead, so the check is not done. (cherry picked from commit 35f2bb9) Co-authored-by: Andrew Svetlov <[email protected]>
…3003) gh-162963: Fix test_tarfile_vs_tar on Windows (GH-162998) bsdtar on Windows sometimes wrongly skips a directory with "Can't add archive to itself" when writing the archive to a regular file. Write the archive to stdout instead, so the check is not done. (cherry picked from commit 35f2bb9) Co-authored-by: Andrew Svetlov <[email protected]>
|
Thanks for fixing the issue! It became annoying that test_shutil failed frequently on the CI. |
|
|
|
bsdtar on Windows sometimes skips a directory with
Can't add archive to itself, which makestest_tarfile_vs_tarfail. It only does this check when writing to a regular file, so the test now writes the archive to stdout.