From 6159d726219120c328a21e2ba3e727e8eca4d343 Mon Sep 17 00:00:00 2001 From: Yuanyuan Chen Date: Mon, 8 Dec 2025 14:03:55 +0800 Subject: [PATCH 1/2] Skip cross module exception translation on FreeBSD Signed-off-by: cyy --- tests/env.py | 1 + tests/test_exceptions.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/env.py b/tests/env.py index ccb1fd30b6..4b48e91930 100644 --- a/tests/env.py +++ b/tests/env.py @@ -8,6 +8,7 @@ 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 79b3879034..d1a45c7ede 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -76,7 +76,7 @@ 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", strict=not env.PYPY, # PR 5569 From cc978b0d51bc81453356434e66fd690bad16079d Mon Sep 17 00:00:00 2001 From: Yuanyuan Chen Date: Tue, 9 Dec 2025 07:54:50 +0800 Subject: [PATCH 2/2] Link to PR number Signed-off-by: cyy --- tests/test_exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index d1a45c7ede..59845b441b 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -78,7 +78,7 @@ def test_cross_module_exceptions(msg): @pytest.mark.xfail( "(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():