There was an error while loading. Please reload this page.
1 parent 08a0d10 commit 1bf86c1Copy full SHA for 1bf86c1
1 file changed
Lib/test/test_os/test_os.py
@@ -156,7 +156,8 @@ def test_getcwd_long_path(self):
156
# ("The filename or extension is too long")
157
break
158
except OSError as exc:
159
- if exc.errno == errno.ENAMETOOLONG:
+ # DragonFly BSD raises EFAULT for a too long path.
160
+ if exc.errno in (errno.ENAMETOOLONG, errno.EFAULT):
161
162
else:
163
raise
0 commit comments