summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFurkan Onder <furkanonder@protonmail.com>2024-09-09 12:14:23 (GMT)
committerGitHub <noreply@github.com>2024-09-09 12:14:23 (GMT)
commitdf4f0cbfad8a1ed0146cabd30d01efd135d4d048 (patch)
tree1135a8d5552214c73957f232b19feb5e004ff219 /Lib
parentb2a8c38bb20e0a201bbc60f66371ee4e406f6dae (diff)
downloadcpython-df4f0cbfad8a1ed0146cabd30d01efd135d4d048.zip
cpython-df4f0cbfad8a1ed0146cabd30d01efd135d4d048.tar.gz
cpython-df4f0cbfad8a1ed0146cabd30d01efd135d4d048.tar.bz2
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824)
Fix test_posix for unsupported posix_fallocate on NetBSD.
Diffstat (limited to 'Lib')
-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 908354c..867235f 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: