Skip to content

Commit

Permalink
test(python/core): update error pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Oct 25, 2024
1 parent cfe0c02 commit b4037f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/test/core/molecule_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ def test_add_conformer():

mol.add_conf(np.arange(6).reshape(2, 3))

with pytest.raises(ValueError, match="size mismatch"):
with pytest.raises(ValueError, match="expected 3 columns"):
mol.add_conf(np.arange(6).reshape(3, 2))

with pytest.raises(ValueError, match="size mismatch"):
with pytest.raises(ValueError, match="different number of atoms"):
mol.add_conf(np.arange(9).reshape(3, 3))

assert mol.num_confs() == 1
Expand Down

0 comments on commit b4037f8

Please sign in to comment.