Skip to content

Commit de5fefb

Browse files
committed
Skip cross module exception translation on FreeBSD
Signed-off-by: cyy <cyyever@outlook.com>
1 parent 1dc7620 commit de5fefb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
LINUX = sys.platform.startswith("linux")
99
MACOS = sys.platform.startswith("darwin")
1010
WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin")
11+
FREEBSD = sys.platform.startswith("freebsd")
1112

1213
CPYTHON = platform.python_implementation() == "CPython"
1314
PYPY = platform.python_implementation() == "PyPy"

tests/test_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_cross_module_exceptions(msg):
7676

7777
# TODO: FIXME
7878
@pytest.mark.xfail(
79-
"(env.MACOS and env.PYPY) or env.ANDROID",
79+
"(env.MACOS and env.PYPY) or env.ANDROID or env.FREEBSD",
8080
raises=RuntimeError,
8181
reason="See Issue #2847, PR #2999, PR #4324",
8282
strict=not env.PYPY, # PR 5569

0 commit comments

Comments
 (0)