Skip to content

Commit

Permalink
check for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
maxscheurer committed Aug 25, 2024
1 parent c752d1c commit c1c0db5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adcc/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ def test_diagonalise_adcmatrix(self):
assert res.converged
assert res.eigenvalues == approx(ref_singlets[:3])

with pytest.raises(InputError): # Too low tolerance
# with pytest.raises(InputError): # Too low tolerance
with pytest.warns(
UserWarning, match="needs to be lower than ADC convergence tolerance"
):
res = diagonalise_adcmatrix(matrix, n_states=9, kind="singlet",
eigensolver="davidson",
conv_tol=1e-14)
Expand Down

0 comments on commit c1c0db5

Please sign in to comment.