aboutsummaryrefslogtreecommitdiff
path: root/lang/python315/files/patch-Lib_test_test__os_test__posix.py
blob: 4f5519adfda809b7884bbbce870ea4b2d0d42dd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
See https://github.com/python/cpython/issues/148841 (independently),
see https://github.com/python/cpython/pull/148844#issuecomment-4406791031


--- Lib/test/test_os/test_posix.py.orig	2026-05-08 11:27:12 UTC
+++ Lib/test/test_os/test_posix.py
@@ -412,7 +412,7 @@ class PosixTester(unittest.TestCase):
             # so skip Solaris-based since they are likely to have ZFS.
             # issue33655: Also ignore EINVAL on *BSD since ZFS is also
             # often used there.
-            if inst.errno == errno.EINVAL and sys.platform.startswith(
+            if inst.errno in (errno.EINVAL, errno.EOPNOTSUPP) and sys.platform.startswith(
                 ('sunos', 'freebsd', 'openbsd', 'gnukfreebsd')):
                 raise unittest.SkipTest("test may fail on ZFS filesystems")
             elif inst.errno == errno.EOPNOTSUPP and sys.platform.startswith("netbsd"):