From 228f56361016ab9e27d5ef21853542dab3e37693 Mon Sep 17 00:00:00 2001 From: Yuanyuan Chen Date: Tue, 9 Dec 2025 08:00:51 +0800 Subject: [PATCH] Skip cross module exception translation on FreeBSD (#5925) * Skip cross module exception translation on FreeBSD Signed-off-by: cyy * Link to PR number Signed-off-by: cyy --------- Signed-off-by: cyy --- tests/env.py | 1 + tests/test_exceptions.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/env.py b/tests/env.py index ccb1fd30b..4b48e9193 100644 --- a/tests/env.py +++ b/tests/env.py @@ -8,6 +8,7 @@ ANDROID = sys.platform.startswith("android") LINUX = sys.platform.startswith("linux") MACOS = sys.platform.startswith("darwin") WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin") +FREEBSD = sys.platform.startswith("freebsd") CPYTHON = platform.python_implementation() == "CPython" PYPY = platform.python_implementation() == "PyPy" diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 79b387903..59845b441 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -76,9 +76,9 @@ def test_cross_module_exceptions(msg): # TODO: FIXME @pytest.mark.xfail( - "(env.MACOS and env.PYPY) or env.ANDROID", + "(env.MACOS and env.PYPY) or env.ANDROID or env.FREEBSD", raises=RuntimeError, - reason="See Issue #2847, PR #2999, PR #4324", + reason="See Issue #2847, PR #2999, PR #4324, PR #5925", strict=not env.PYPY, # PR 5569 ) def test_cross_module_exception_translator():