Skip to content

Commit 25a23cb

Browse files
[3.13] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824) (#123864)
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824) Fix test_posix for unsupported posix_fallocate on NetBSD. (cherry picked from commit df4f0cb) Co-authored-by: Furkan Onder <[email protected]>
1 parent 3fd3b8a commit 25a23cb

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)