Skip cross module exception translation on FreeBSD (#5925)
* Skip cross module exception translation on FreeBSD
Signed-off-by: cyy <cyyever@outlook.com>
* Link to PR number
Signed-off-by: cyy <cyyever@outlook.com>
---------
Signed-off-by: cyy <cyyever@outlook.com>
diff --git a/tests/env.py b/tests/env.py
index ccb1fd3..4b48e91 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 79b3879..59845b4 100644
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -76,9 +76,9 @@
# 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():