aboutsummaryrefslogtreecommitdiff
path: root/lang/python314/files/patch-Lib_test_test__posix.py
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2025-11-01 22:12:42 +0000
committerMatthias Andree <mandree@FreeBSD.org>2025-11-01 22:14:18 +0000
commitf40ba42334e6448d96cb54c652e01d7e45190f9b (patch)
tree7c69b3da13607f80b39e4122e79a15bdd139cc1e /lang/python314/files/patch-Lib_test_test__posix.py
parentedcf1d7d57b44e838648ae0695afd23a43275fb7 (diff)
Diffstat (limited to 'lang/python314/files/patch-Lib_test_test__posix.py')
-rw-r--r--lang/python314/files/patch-Lib_test_test__posix.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/python314/files/patch-Lib_test_test__posix.py b/lang/python314/files/patch-Lib_test_test__posix.py
new file mode 100644
index 000000000000..6dc5ab44b540
--- /dev/null
+++ b/lang/python314/files/patch-Lib_test_test__posix.py
@@ -0,0 +1,18 @@
+--- Lib/test/test_posix.py.orig 2025-11-01 21:42:35 UTC
++++ Lib/test/test_posix.py
+@@ -412,11 +412,12 @@ 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 == errno.EINVAL or inst.errno == errno.ENODEV) 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"):
+- raise unittest.SkipTest("test may fail on FFS filesystems")
++ # FreeBSD may return EOPNOTSUPP in some versions
++ elif inst.errno == errno.EOPNOTSUPP and sys.platform.startswith(('netbsd', 'freebsd')):
++ raise unittest.SkipTest("test may fail on ZFS and FFS filesystems")
+ else:
+ raise
+ finally: