Skip to content
Open
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
3 changes: 2 additions & 1 deletion Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def test_getcwd_long_path(self):
# ("The filename or extension is too long")
break
except OSError as exc:
if exc.errno == errno.ENAMETOOLONG:
# DragonFly BSD raises EFAULT for a too long path.
if exc.errno in (errno.ENAMETOOLONG, errno.EFAULT):
break
else:
raise
Expand Down
Loading