Skip to content

Commit

Permalink
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#…
Browse files Browse the repository at this point in the history
…123824)

Fix test_posix for unsupported posix_fallocate on NetBSD.
  • Loading branch information
furkanonder authored Sep 9, 2024
1 parent b2a8c38 commit df4f0cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/test/test_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,10 @@ def test_posix_fallocate(self):
# issue33655: Also ignore EINVAL on *BSD since ZFS is also
# often used there.
if inst.errno == errno.EINVAL and sys.platform.startswith(
('sunos', 'freebsd', 'netbsd', 'openbsd', 'gnukfreebsd')):
('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")
else:
raise
finally:
Expand Down

0 comments on commit df4f0cb

Please sign in to comment.