From df4f0cbfad8a1ed0146cabd30d01efd135d4d048 Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Mon, 9 Sep 2024 15:14:23 +0300 Subject: [PATCH] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824) Fix test_posix for unsupported posix_fallocate on NetBSD. --- Lib/test/test_posix.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 908354cb8574d1..867235fa8c8795 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -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: