]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-109981: Resolve situation on iOS regarding fd_count. (GH-132823) (#132824)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 23 Apr 2025 21:40:25 +0000 (23:40 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Apr 2025 21:40:25 +0000 (21:40 +0000)
commitb220c1c0a479fdb362d97735034f7ce2edf1e3db
tree6ca33a06ecde5a5122d55b6bfca640df85b593db
parentf8d4ca42ae2b0da9e3df65884b6e55f2e4035070
[3.13] gh-109981: Resolve situation on iOS regarding fd_count. (GH-132823) (#132824)

Modifies the test helper that counts the list of open file descriptors to use
the optimised ``/dev/fd`` approach on all Apple platforms, not just macOS. This
avoids crashes caused by guarded file descriptors.
(cherry picked from commit 862fd890361005598a6f4614ea0608c8447831c2)

Co-authored-by: John <johnzhou721@gmail.com>
Lib/test/support/os_helper.py
Misc/NEWS.d/next/Tests/2025-04-23-02-23-37.gh-issue-109981.IX3k8p.rst [new file with mode: 0644]