mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
[3.13] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (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 df4f0cbfad
)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
This commit is contained in:
parent
3fd3b8a678
commit
25a23cb002
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue