]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824)
authorFurkan Onder <furkanonder@protonmail.com>
Mon, 9 Sep 2024 12:14:23 +0000 (15:14 +0300)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2024 12:14:23 +0000 (14:14 +0200)
Fix test_posix for unsupported posix_fallocate on NetBSD.

Lib/test/test_posix.py

index 908354cb8574d1e0e999deed9cf1a406c393a361..867235fa8c8795f9ade9444e958dd9d5d4c8c4bf 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: