-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.12only security fixesonly security fixestestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
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
3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.12only security fixesonly security fixestestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error