]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-139935: fix `test_os.test_getlogin` on some platforms (#139936)
authoryihong <zouzou0208@gmail.com>
Sat, 11 Oct 2025 12:32:57 +0000 (20:32 +0800)
committerGitHub <noreply@github.com>
Sat, 11 Oct 2025 12:32:57 +0000 (12:32 +0000)
commit897a36baddb3611865a839c6345315da689c52a1
tree1f13b88040f3b31c342b05a4e8536664bfcf22c9
parentd4e5802588db3459f04d4b8013cc571a8988e203
gh-139935: fix `test_os.test_getlogin` on some platforms (#139936)

This amends 4e7e2dd043c1da85b0c157d3ed24866b77e83a4f to catch errors
that `os.getlogin` can raise as specified by POSIX and Linux/glibc [1].

[1]: https://man7.org/linux/man-pages/man3/getlogin.3.html#ERRORS

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/test/test_os/test_os.py