-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-139322: Reenable test_os.test_getlogin() #139498
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
Conversation
The test is skipped temporarily for 15 years :-D Since commit 0151b8e:
|
Note that we are actually setting a negative errno instead of a positive one (and thus we have errno = -25 which is actually the negative value for "ENOTTY Inappropriate ioctl for device").
See also pytest-dev/pytest#1156 and #84998. The manpage also says:
So, this may also be an issue with glibc itself when we're running in the CI (on my laptop, I can do |
Skip test_getlogin() is getlogin() fails with ENOTTY.
I fixed os.getlogin() to report the correct errno.
I would prefer to avoid that. It has a side effect and it requires to implement (expose) setlogin() in Python.
errno 25 is ENOTTY. The getlogin() manual page says:
I modified my PR to skip the test is getlogin() fails with ENOTTY. |
🤖 New build scheduled with the buildbot fleet by @vstinner for commit ecd2fdc 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F139498%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Oh, that's a real failure:
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit cd42a96 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F139498%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Uh oh!
There was an error while loading. Please reload this page.