• Victor Stinner's avatar
    bpo-35772: Fix test_tarfile on ppc64 (GH-11606) · b2385458
    Victor Stinner authored
    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().
    b2385458
2019-01-18-12-19-19.bpo-35772.sGBbsn.rst 442 Bytes