Closed
Description
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:
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, but that's less than the smallest page size on x86.
Since this feature appears to be Linux specific, the check should:
- Use
os.sysconf('SC_PAGESIZE')
as a minimum - Fix the typos ("SkitTest") in test_fcntl_f_pipesize and test_pipesizes
Linked PRs
- gh-95672 fix typo SkitTest to SkipTest #102119
- [3.11] gh-95672 fix typo SkitTest to SkipTest (gh-102119) #102121
- [3.10] gh-95672 fix typo SkitTest to SkipTest (gh-102119) #102122
- gh-95672 skip fcntl when pipesize is smaller than pagesize #102163
- gh-95672: Update memory_watchdog to use test.support.get_pagesize #102365
- gh-95672: Fix versionadded indentation of get_pagesize in test.rst #102455
Metadata
Metadata
Assignees
Labels
only security fixesonly security fixesonly security fixesonly security fixesonly security fixesonly security fixesTests in the Lib/test dirTests in the Lib/test dirAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error