]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35772: Fix test_tarfile on ppc64 (GH-11606)
authorVictor Stinner <vstinner@redhat.com>
Mon, 21 Jan 2019 09:24:12 +0000 (10:24 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Jan 2019 09:24:12 +0000 (10:24 +0100)
commitb2385458ceddaf3d0d91456923716259d3915023
tree9f654dd0a86e81b96f10d10eb1503271c4a9a771
parent222d303ade8aadf0adcae5190fac603bdcafe3f0
bpo-35772: Fix test_tarfile on ppc64 (GH-11606)

Fix sparse file tests of test_tarfile on ppc64le with the tmpfs
filesystem.

Fix the function testing if the filesystem supports sparse files:
create a file which contains data and "holes", instead of creating a
file which contains no data.

tmpfs effective block size is a page size (tmpfs lives in the page
cache). RHEL uses 64 KiB pages on aarch64, ppc64 and ppc64le, only
s390x and x86_64 use 4 KiB pages, whereas the test punch holes of
4 KiB.

test.pythoninfo: Add resource.getpagesize().
Lib/test/pythoninfo.py
Lib/test/test_tarfile.py
Misc/NEWS.d/next/Tests/2019-01-18-12-19-19.bpo-35772.sGBbsn.rst [new file with mode: 0644]