Skip to content

Commit c1c0db5

Browse files
committed
check for warning
1 parent c752d1c commit c1c0db5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adcc/test_workflow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ def test_diagonalise_adcmatrix(self):
215215
assert res.converged
216216
assert res.eigenvalues == approx(ref_singlets[:3])
217217

218-
with pytest.raises(InputError): # Too low tolerance
218+
# with pytest.raises(InputError): # Too low tolerance
219+
with pytest.warns(
220+
UserWarning, match="needs to be lower than ADC convergence tolerance"
221+
):
219222
res = diagonalise_adcmatrix(matrix, n_states=9, kind="singlet",
220223
eigensolver="davidson",
221224
conv_tol=1e-14)

0 commit comments

Comments
 (0)