Skip to content

Commit b7cff30

Browse files
committed
gh-148841: Fix test_posix on FreeBSD 15 with zfs filesys
Handle EOPNOTSUPP as well as EINVAL in this case.
1 parent db3e990 commit b7cff30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_os/test_posix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ def test_posix_fallocate(self):
415415
if inst.errno == errno.EINVAL and sys.platform.startswith(
416416
('sunos', 'freebsd', 'openbsd', 'gnukfreebsd')):
417417
raise unittest.SkipTest("test may fail on ZFS filesystems")
418-
elif inst.errno == errno.EOPNOTSUPP and sys.platform.startswith("netbsd"):
418+
elif inst.errno == errno.EOPNOTSUPP and sys.platform.startswith(
419+
("netbsd", "freebsd")):
419420
raise unittest.SkipTest("test may fail on FFS filesystems")
420421
else:
421422
raise

0 commit comments

Comments
 (0)