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
3 changes: 2 additions & 1 deletion Lib/test/test_os/test_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ def test_posix_fallocate(self):
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"):
elif inst.errno == errno.EOPNOTSUPP and sys.platform.startswith(
("netbsd", "freebsd")):
raise unittest.SkipTest("test may fail on FFS filesystems")
else:
raise
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