Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions 8 Lib/test/test_os/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -3204,13 +3204,7 @@ def test_getlogin(self):
user_name = os.getlogin()
except OSError as exc:
# See https://man7.org/linux/man-pages/man3/getlogin.3.html#ERRORS.
allowed_errors = (
# defined by POSIX
errno.EMFILE, errno.ENFILE, errno.ENXIO, errno.ERANGE,
# defined by Linux/glibc
errno.ENOENT, errno.ENOMEM, errno.ENOTTY,
)
if exc.errno in allowed_errors:
if exc.errno in (errno.ENXIO, errno.ENOENT, errno.ENOTTY):
self.skipTest(str(exc))
else:
raise
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.