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..59845b441b 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():