fix test suite (pytest changes in ExceptionInfo class)

This commit is contained in:
Wenzel Jakob
2019-07-06 16:57:17 +02:00
parent 8b90b1da62
commit 9fd4712121
4 changed files with 14 additions and 13 deletions

View File

@@ -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():