2 parents 5a759de + a3ec43e commit 53b301bCopy full SHA for 53b301b
1 file changed
tests/test_input_A.py
@@ -64,7 +64,7 @@ def test_input_A_dtypes():
64
A, b = create_test_A_b_rand(10, 0.5)
65
for d in [np.float16, np.float32, np.int16, np.int32, np.int64, np.complex64,
66
np.complex128, np.complex128, np.uint16, np.uint32, np.uint64]:
67
- with pytest.raises(TypeError):
+ with pytest.RaisesExc(check=lambda e: isinstance(e, (ValueError, TypeError))):
68
ps.solve(A.astype(d), b)
69
70
0 commit comments