Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jul 1, 2024

@vstinner vstinner changed the title gh-121200: Debug test_posixpath.test_expanduser_pwd2() [DEBUG] gh-121200: Debug test_posixpath.test_expanduser_pwd2() Jul 1, 2024
@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2024

!buildbot s390x Fedora Rawhide PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vstinner for commit 06ff86e 🤖

The command will test the builders whose names match following regular expression: s390x Fedora Rawhide PR

The builders matched are:

  • s390x Fedora Rawhide PR

@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2024

!buildbot s390x Fedora Rawhide PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vstinner for commit 06ff86e 🤖

The command will test the builders whose names match following regular expression: s390x Fedora Rawhide PR

The builders matched are:

  • s390x Fedora Rawhide PR

@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2024

!buildbot s390x Fedora Rawhide LTO PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vstinner for commit 06ff86e 🤖

The command will test the builders whose names match following regular expression: s390x Fedora Rawhide LTO PR

The builders matched are:

  • s390x Fedora Rawhide LTO PR

@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2024

Aha, pw_dir is different!

======================================================================
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'), entry2=pwd.struct_passwd(pw_name='cockpit-ws', pw_passwd='x', pw_uid=996, pw_gid=995, pw_gecos='User for cockpit web service', pw_dir='/nonexisting', pw_shell='/sbin/nologin'))
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/pull_request.edelsohn-fedora-rawhide-z.lto/build/Lib/test/test_posixpath.py", line 369, in test_expanduser_pwd2
    self.assertEqual(posixpath.expanduser('~' + name), home)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '/nonexisting' != '/'
- /nonexisting
+ /

@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2024

getpwall() and getpwnam() don't return the same pw_dir!

getpwall(): pw_dir='/'

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')

getpwnam(): pw_dir='/nonexisting'

pwd.struct_passwd(pw_name='cockpit-ws', pw_passwd='x', pw_uid=996, pw_gid=995, pw_gecos='User for cockpit web service', pw_dir='/nonexisting', pw_shell='/sbin/nologin'))

@vstinner vstinner closed this Jul 1, 2024
@vstinner vstinner deleted the debug_expanduser branch July 1, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants