Skip to content

test_posixpath.test_expanduser_pwd2() fails on s390x Fedora Rawhide 3.x #121200

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

Closed
vstinner opened this issue Jul 1, 2024 · 2 comments
Closed
Labels
tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

vstinner commented Jul 1, 2024

build: https://buildbot.python.org/all/#/builders/538/builds/4698

FAIL: test_expanduser_pwd2 (test.test_posixpath.PosixPathTest.test_expanduser_pwd2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-fedora-rawhide-z/build/Lib/test/test_posixpath.py", line 366, in test_expanduser_pwd2
    self.assertEqual(posixpath.expanduser('~' + name), home)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '/nonexisting' != '/'
- /nonexisting
+ /

Linked PRs

@vstinner vstinner added the tests Tests in the Lib/test dir label Jul 1, 2024
vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2024
Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
vstinner added a commit that referenced this issue Jul 1, 2024
Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 1, 2024
…1207)

Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
(cherry picked from commit 05a6f8d)

Co-authored-by: Victor Stinner <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 1, 2024
…1207)

Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
(cherry picked from commit 05a6f8d)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this issue Jul 1, 2024
…#121214)

gh-121200: Log pwd entry in test_expanduser_pwd2() (GH-121207)

Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
(cherry picked from commit 05a6f8d)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this issue Jul 1, 2024
…#121213)

gh-121200: Log pwd entry in test_expanduser_pwd2() (GH-121207)

Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
(cherry picked from commit 05a6f8d)

Co-authored-by: Victor Stinner <[email protected]>
@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2024

With more logs:

FAIL: test_expanduser_pwd2 (test.test_posixpath.PosixPathTest.test_expanduser_pwd2) (pwd=pwd.struct_passwd(pw_name='cockpit-ws', pw_passwd='x', pw_uid=996, pw_gid=996, pw_gecos='Dynamic User', pw_dir='/', pw_shell='/usr/sbin/nologin'))
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-fedora-rawhide-z/build/Lib/test/test_posixpath.py", line 367, in test_expanduser_pwd2
    self.assertEqual(posixpath.expanduser('~' + name), home)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '/nonexisting' != '/'
- /nonexisting
+ /

vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2024
vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2024
vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2024
Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2024
Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
vstinner added a commit that referenced this issue Jul 1, 2024
Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 1, 2024
…GH-121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
(cherry picked from commit 02cb5fd)

Co-authored-by: Victor Stinner <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 1, 2024
…GH-121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
(cherry picked from commit 02cb5fd)

Co-authored-by: Victor Stinner <[email protected]>
@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2024

Fixed by the change 02cb5fd.

@vstinner vstinner closed this as completed Jul 1, 2024
vstinner added a commit that referenced this issue Jul 1, 2024
…1228) (#121231)

gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
(cherry picked from commit 02cb5fd)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this issue Jul 1, 2024
…1228) (#121232)

gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
(cherry picked from commit 02cb5fd)

Co-authored-by: Victor Stinner <[email protected]>
Akasurde pushed a commit to Akasurde/cpython that referenced this issue Jul 3, 2024
Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
Akasurde pushed a commit to Akasurde/cpython that referenced this issue Jul 3, 2024
…#121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
…#121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
…#121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant