]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Sep 2024 01:26:50 +0000 (03:26 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Sep 2024 01:26:50 +0000 (18:26 -0700)
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 df4f0cbfad8a1ed0146cabd30d01efd135d4d048)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Lib/test/test_posix.py

index 5d2decffd720f00c1bc2f04ed35471a30b6716df..07442a9654935204242260777b646ff3c4761ad7 100644 (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: