pybind / pybind11

Seamless operability between C++11 and Python
https://pybind11.readthedocs.io/
Other
15.09k stars 2.05k forks source link

[BUG]: Test test_cross_module_exception_translator fails #3537

Open yurivict opened 2 years ago

yurivict commented 2 years ago

Required prerequisites

Problem description

_________________________________________________________________________ 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 ==================================================================================

Tests run from the port's 'test' target.

Version: 2.8.1 OS: FreeBSD 13

Reproducible example code

No response

yurivict commented 1 year ago

It still fails in 2.10.4