Uh oh!
There was an error while loading. Please reload this page.
gh-139935: do not skip test on real errors in os.getlogin - #139953
Conversation
os.getloginos.getloginvstinner
commented
Oct 11, 2025
Thanks for the quickfix. I prefer to grow the list of ignored errno one by one, when we discover a clear failure in the wild, rather than ignoring them in advance without knowing if they can occur in practice. |
picnixz
commented
Oct 11, 2025
Yes, this makes sense. I don't think we'll actually see those EMFILE and ENFILE unless we're in a constrained environment. ENOMEM is only for |
vstinner
commented
Oct 11, 2025
os.getlogin() is implemented with getlogin() if getlogin_r() is not available :-) |
picnixz
commented
Oct 11, 2025
Oh! so indeed we should not catch this error even more. |
This amends a PR I just merged. This is my fault here as I incorrectly assumed that all those errors were non-fatal.
test_os.LoginTests.test_getlogin#139935