From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:47:05 +0000 (+0200) Subject: [3.12] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824... X-Git-Tag: v3.12.7~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=917f2c8422b5833be534d57b36c36fd29798a70b;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824) (#123865) 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 --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 7ed45acf28cb..aa811326e4cc 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -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: