mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
fix test suite (pytest changes in ExceptionInfo class)
This commit is contained in:
@@ -679,10 +679,10 @@ def test_issue1105():
|
||||
# These should still fail (incompatible dimensions):
|
||||
with pytest.raises(TypeError) as excinfo:
|
||||
m.iss1105_row(np.ones((7, 1)))
|
||||
assert "incompatible function arguments" in str(excinfo)
|
||||
assert "incompatible function arguments" in str(excinfo.value)
|
||||
with pytest.raises(TypeError) as excinfo:
|
||||
m.iss1105_col(np.ones((1, 7)))
|
||||
assert "incompatible function arguments" in str(excinfo)
|
||||
assert "incompatible function arguments" in str(excinfo.value)
|
||||
|
||||
|
||||
def test_custom_operator_new():
|
||||
|
||||
Reference in New Issue
Block a user