Skip to content

Commit df4f0cb

Browse files
authored
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824)
Fix test_posix for unsupported posix_fallocate on NetBSD.
1 parent b2a8c38 commit df4f0cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_posix.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,10 @@ def test_posix_fallocate(self):
411411
# issue33655: Also ignore EINVAL on *BSD since ZFS is also
412412
# often used there.
413413
if inst.errno == errno.EINVAL and sys.platform.startswith(
414-
('sunos', 'freebsd', 'netbsd', 'openbsd', 'gnukfreebsd')):
414+
('sunos', 'freebsd', 'openbsd', 'gnukfreebsd')):
415415
raise unittest.SkipTest("test may fail on ZFS filesystems")
416+
elif inst.errno == errno.EOPNOTSUPP and sys.platform.startswith("netbsd"):
417+
raise unittest.SkipTest("test may fail on FFS filesystems")
416418
else:
417419
raise
418420
finally:

0 commit comments

Comments
 (0)