gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824)

Fix test_posix for unsupported posix_fallocate on NetBSD.
This commit is contained in:
Furkan Onder 2024-09-09 15:14:23 +03:00 committed by GitHub
parent b2a8c38bb2
commit df4f0cbfad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -411,8 +411,10 @@ class PosixTester(unittest.TestCase):
# 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: