Skip to content
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

test_posixpath: test_expanduser_pwd2() fails on AMD64 Ubuntu Shared 3.x #118060

Closed
vstinner opened this issue Apr 18, 2024 · 3 comments
Closed

test_posixpath: test_expanduser_pwd2() fails on AMD64 Ubuntu Shared 3.x #118060

vstinner opened this issue Apr 18, 2024 · 3 comments
Labels
tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

vstinner commented Apr 18, 2024

Example of recent failure: https://buildbot.python.org/all/#/builders/506/builds/7698

FAIL: test_expanduser_pwd2 (test.test_posixpath.PosixPathTest.test_expanduser_pwd2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_posixpath.py", line 354, in test_expanduser_pwd2
    self.assertEqual(posixpath.expanduser('~' + name), home)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '/var/lib/lxd' != '/var/lib/lxd/'
- /var/lib/lxd
+ /var/lib/lxd/
?             +

Linked PRs

@vstinner vstinner added the tests Tests in the Lib/test dir label Apr 18, 2024
vstinner added a commit to vstinner/cpython that referenced this issue Apr 18, 2024
Add context, the pwd entry, when a test fails.
vstinner added a commit to vstinner/cpython that referenced this issue Apr 18, 2024
Add context when a test fails: the pwd entry.
@vstinner
Copy link
Member Author

The test was added by commit 51132da. The test was changed by commit ccdcd1d: "Fix test for posixpath.expanduser() when pw_dir ends with /".

cc @serhiy-storchaka

@serhiy-storchaka
Copy link
Member

Can it be closed now?

@vstinner
Copy link
Member Author

AMD64 Ubuntu Shared 3.x buildbot worker is back to green, I close the issue.

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

2 participants