Skip to content

Commit

Permalink
[3.13] gh-123823: Fix test_posix for unsupported posix_fallocate on N…
Browse files Browse the repository at this point in the history
…etBSD (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 <furkanonder@protonmail.com>
  • Loading branch information
miss-islington and furkanonder authored Sep 30, 2024
1 parent 3fd3b8a commit 25a23cb
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 25a23cb

Please sign in to comment.