-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
test_pathlib - test_group_no_follow_symlinks resolves group name from uid rather than gid #132356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
barneygale
pushed a commit
that referenced
this issue
Apr 11, 2025
…ks (#132357) Find the correct group name in test_group_no_follow_symlinks
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Apr 11, 2025
…symlinks (pythonGH-132357) Find the correct group name in test_group_no_follow_symlinks (cherry picked from commit 3e1a47b) Co-authored-by: Karolina Surma <[email protected]>
Thank you for reporting and fixing this! |
befeleme
added a commit
to fedora-python/cpython
that referenced
this issue
Apr 14, 2025
Reported: python#132356 Fix proposed upstream: python#132357
hrnciar
pushed a commit
to fedora-python/cpython
that referenced
this issue
Apr 18, 2025
Reported: python#132356 Fix proposed upstream: python#132357
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
Bug description:
In Fedora 43
test_group_no_follow_symlinks
started failing with a peculiar failure for Python 3.14 and Python 3.13:The gid, which is asserted the line above, is in both cases the same (
3
), but the names don't match.The tests calls
_get_pw_name_or_skip_test
, which callspwd.getpwuid(uid).pw_name
- which in return stopped giving the right result in our environment.cpython/Lib/test/test_pathlib/test_pathlib.py
Line 2068 in 29af6ce
The cut contents of the two system files (you can check it for yourself spawning the fedora:rawhide container with
podman run -rm -it fedora:rawhide /usr/bin/bash
):I believe the test should use the other helper function prepared
_get_gr_name_or_skip_test
. It was probably an accidental copy-paste omission in the first place. I verified this will make the tests pass.CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: