Skip to content

Commit

Permalink
trying to fix 3.12 domain error problems
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <nickpapior@gmail.com>
  • Loading branch information
zerothi committed Oct 11, 2024
1 parent 5c70476 commit 0af33db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sisl/io/siesta/tests/test_tshs.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def test_tshs_warn(sisl_files):
# check cell
geom = si.read_geometry()
geom.lattice.cell[:, :] = 1.0
with pytest.warns(sisl.SislWarning, match="lattice vectors"):
with (
pytest.warns(sisl.SislWarning, match="lattice vectors"),
pytest.raises(ValueError, match="math domain error"),
):
si.read_hamiltonian(geometry=geom)

# check atomic coordinates
Expand Down

0 comments on commit 0af33db

Please sign in to comment.