summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-09-30 01:26:50 (GMT)
committerGitHub <noreply@github.com>2024-09-30 01:26:50 (GMT)
commit25a23cb002dc6645311425c329f1fbf52cc057c1 (patch)
tree32c674c2199ff1fe077e1602af58fbf14c847bb4
parent3fd3b8a6780bb8a06d6d0a5a9cd96eafe8ac735c (diff)
downloadcpython-25a23cb002dc6645311425c329f1fbf52cc057c1.zip
cpython-25a23cb002dc6645311425c329f1fbf52cc057c1.tar.gz
cpython-25a23cb002dc6645311425c329f1fbf52cc057c1.tar.bz2
[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 df4f0cbfad8a1ed0146cabd30d01efd135d4d048) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
-rw-r--r--Lib/test/test_posix.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 5d2decf..07442a9 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: