mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
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().
This commit is contained in:
parent
222d303ade
commit
b2385458ce
3 changed files with 15 additions and 2 deletions
|
@ -529,6 +529,8 @@ def collect_resource(info_add):
|
|||
value = resource.getrlimit(key)
|
||||
info_add('resource.%s' % name, value)
|
||||
|
||||
call_func(info_add, 'resource.pagesize', resource, 'getpagesize')
|
||||
|
||||
|
||||
def collect_test_socket(info_add):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue