()
| 235 | |
| 236 | |
| 237 | def test_buffer_exception(): |
| 238 | with pytest.raises(BufferError, match="Error getting buffer") as excinfo: |
| 239 | memoryview(m.BrokenMatrix(1, 1)) |
| 240 | assert isinstance(excinfo.value.__cause__, RuntimeError) |
| 241 | assert "for context" in str(excinfo.value.__cause__) |
| 242 | |
| 243 | |
| 244 | @pytest.mark.parametrize("type", ["pybind11", "numpy"]) |
nothing calls this directly
no test coverage detected