()
| 259 | reason="Started segfaulting February 2024", |
| 260 | ) |
| 261 | def test_throw_nested_exception(): |
| 262 | with pytest.raises(RuntimeError) as excinfo: |
| 263 | m.throw_nested_exception() |
| 264 | assert str(excinfo.value) == "Outer Exception" |
| 265 | assert str(excinfo.value.__cause__) == "Inner Exception" |
| 266 | |
| 267 | |
| 268 | # This can often happen if you wrap a pybind11 class in a Python wrapper |