]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-126909: Fix running xattr tests on systems with lower limits (GH-126930...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 Nov 2024 13:22:58 +0000 (14:22 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2024 13:22:58 +0000 (13:22 +0000)
commitfd241d64c174a4d1d60e348d29d26344fc5670c2
tree9e43b2a4522c984d1399ee3f76c5058ef13d7c0d
parent06dc4bd0731368b99bd4b0f7047a93f33b69774f
[3.12] gh-126909: Fix running xattr tests on systems with lower limits (GH-126930) (#126964)

gh-126909: Fix running xattr tests on systems with lower limits (GH-126930)

Modify the extended attribute tests to write fewer and smaller extended
attributes, in order to fit within filesystems with total xattr limit
of 1 KiB (e.g. ext4 with 1 KiB blocks).  Previously, the test would
write over 2 KiB, making it fail with ENOSPC on such systems.
(cherry picked from commit 2c0a21c1aad65ab8362491acf856eb574b1257ad)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
Lib/test/test_os.py
Misc/NEWS.d/next/Tests/2024-11-17-16-56-48.gh-issue-126909.60VTxW.rst [new file with mode: 0644]