Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 4 additions & 5 deletions Lib/test/test_os/test_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,10 @@ def test_posix_fallocate(self):
# so skip Solaris-based since they are likely to have ZFS.
# issue33655: Also ignore EINVAL on *BSD since ZFS is also
# often used there.
if inst.errno == errno.EINVAL and sys.platform.startswith(
('sunos', 'freebsd', 'openbsd', 'gnukfreebsd')):
raise unittest.SkipTest("test may fail on ZFS filesystems")
elif inst.errno == errno.EOPNOTSUPP and sys.platform.startswith("netbsd"):
raise unittest.SkipTest("test may fail on FFS filesystems")
# gh-148841: unified to one case for EINVAL/EOPNOTSUPP on *BSD
if inst.errno in (errno.EINVAL, errno.EOPNOTSUPP) and sys.platform.startswith(
('sunos', 'freebsd', 'openbsd', 'netbsd', 'gnukfreebsd')):
raise unittest.SkipTest("test may fail on ZFS / FFS filesystems")
else:
raise
finally:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
When calling fallocate() on a zfs filesystem, FreeBSD 15 returns EOPNOTSUPP,
as NetBSD does. This is causing test_os to fail - Handle this case as well.
Loading