Skip to content

Conversation

@pltrz
Copy link
Contributor

@pltrz pltrz commented Dec 15, 2025

POSIX does not define strerror() wording.

Replace string assertions with errno-based checks and fix ExceptionInfo handling.

This way, test_too_many_open_files(tmp_path) is libc-agnostic (currently fails on musl-libc Linux distros).

Fixes #3000

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • added news fragment in docs/changelog folder
  • ensured there are test(s) validating the fix
  • updated/extended the documentation

…text

POSIX does not define strerror() wording. Replace string assertions
with errno-based checks and fix ExceptionInfo handling.

This way, `test_too_many_open_files(tmp_path)` is libc-agnostic.

Fixes pypa#3000
Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gaborbernat gaborbernat merged commit 365628c into pypa:main Dec 15, 2025
2 checks passed
@pltrz pltrz deleted the fix-musl-tests branch December 16, 2025 00:35
@gaborbernat
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_too_many_open_files only works on GNU-libc systems

2 participants