diff --git a/tests/test_dataclasses.py b/tests/test_dataclasses.py index be473baf28..004b2e61d8 100644 --- a/tests/test_dataclasses.py +++ b/tests/test_dataclasses.py @@ -1946,7 +1946,7 @@ def test_ase_molecule(self): # pylint: disable=no-self-use assert retdict['value'] == 0 assert retdict['dim'] == 0 - with pytest.raises(AssertionError): + with pytest.raises(ValueError): # A periodic cell requires a nonzero volume in periodic directions s.set_pbc(True) s.store()