# Bug report On Linux systems, when configured with a default pipe capacity of 4096, the following test fail: - test_fcntl.test_fcntl_f_pipesize - test_subprocess.test_pipesizes From a recent `fcntl(2)` Linux [man page](https://man7.org/linux/man-pages/man2/fcntl.2.html#:~:text=Attempts%20to%20set%20the%20pipe%20capacity%20below%20the%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20page%20size%20are%20silently%20rounded%20up%20to%20the%20page%20size.): ``` F_SETPIPE_SZ: ... Attempts to set the pipe capacity below the page size are silently rounded up to the page size. ``` There's a check that attempts to skip the tests if the pipe capacity is [512 bytes](https://github.com/python/cpython/blob/6a5104f4fa83ed08fe31f712757dddabfede394c/Lib/test/test_fcntl.py#L202), but that's less than the smallest page size on x86. Since this feature appears to be Linux specific, the check should: 1) Use `os.sysconf('SC_PAGESIZE')` as a minimum 2) Fix the typos ("SkitTest") in [test_fcntl_f_pipesize](https://github.com/python/cpython/blob/6a5104f4fa83ed08fe31f712757dddabfede394c/Lib/test/test_fcntl.py#L203) and [test_pipesizes](https://github.com/python/cpython/blob/f6dd14c65336cda4e2ebccbc6408dfe3b0a68a34/Lib/test/test_subprocess.py#L715) <!-- gh-linked-prs --> ### Linked PRs * gh-102119 * gh-102121 * gh-102122 * gh-102163 * gh-102365 * gh-102455 <!-- /gh-linked-prs -->
Bug report
On Linux systems, when configured with a default pipe capacity of 4096, the following test fail:
From a recent
fcntl(2)Linux man page:There's a check that attempts to skip the tests if the pipe capacity is 512 bytes, but that's less than the smallest page size on x86.
Since this feature appears to be Linux specific, the check should:
os.sysconf('SC_PAGESIZE')as a minimumLinked PRs