Skip to content

Commit cd42a96

Browse files
committed
Skip also the test on ENXIO
1 parent ecd2fdc commit cd42a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_os/test_os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3203,7 +3203,7 @@ def test_getlogin(self):
32033203
try:
32043204
user_name = os.getlogin()
32053205
except OSError as exc:
3206-
if exc.errno == errno.ENOTTY:
3206+
if exc.errno in (errno.ENOTTY, errno.ENXIO):
32073207
self.skipTest(str(exc))
32083208
else:
32093209
raise

0 commit comments

Comments
 (0)