Sitelet https://github.com/python/cpython/issues/95672
Skip to content

pipe test failures on some Linux configurations  #95672

Description

@colesbury

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:

  1. Use os.sysconf('SC_PAGESIZE') as a minimum
  2. Fix the typos ("SkitTest") in test_fcntl_f_pipesize and test_pipesizes

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    testsTests in the Lib/test dir
    3.11only security fixes
    3.12only security fixes
    on Aug 4, 2022
  2. self-assigned this
    on Feb 18, 2023
  3. corona10 commented on Feb 18, 2023

    @corona10
    Member

    Same as #95675 (comment)
    I will introduce this issue into the internal OSS sprint as the good first bug.
    I will delegate the issue to my mentees.
    Thank you for understanding!

  4. hyeongyun0916 commented on Feb 20, 2023

    @hyeongyun0916
    Contributor

    I'm looking this issue 👀

  5. added a commit that references this issue on Feb 21, 2023
  6. added 2 commits that reference this issue on Feb 21, 2023
  7. added 2 commits that reference this issue on Feb 22, 2023
  8. added a commit that references this issue on Feb 23, 2023
  9. added 2 commits that reference this issue on Mar 1, 2023
  10. corona10 commented on Mar 2, 2023

    @corona10
    Member

    @hyeongyun0916 Thanks for the hardwork!

  11. added a commit that references this issue on Mar 6, 2023
  12. added 2 commits that reference this issue on Sep 1, 2024
  13. added a commit that references this issue on Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.10 (EOL)end of life3.11only security fixes3.12only security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions