_________________________________________________________________________ test_cross_module_exception_translator ___________________________________________________________________________
@pytest.mark.xfail(
"env.PYPY and env.MACOS",
raises=RuntimeError,
reason="Expected failure with PyPy and libc++ (Issue #2847 & PR #2999)",
)
def test_cross_module_exception_translator():
with pytest.raises(KeyError):
# translator registered in cross_module_tests
> m.throw_should_be_translated_to_key_error()
E RuntimeError
../../pybind11-2.8.1/tests/test_exceptions.py:82: RuntimeError
================================================================================== short test summary info ==================================================================================
Required prerequisites
Problem description
Tests run from the port's 'test' target.
Version: 2.8.1 OS: FreeBSD 13
Reproducible example code
No response