Skip to content

Commit 52c99e6

Browse files
committed
fix: fix comment for UserWarning.
1 parent 15ccba1 commit 52c99e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def test_add_new_atom(existing, atype, xyz, expected_len, expected_element, expe
660660

661661
def test_add_new_atom_duplicate():
662662
# Case 3: duplicated atom added to the existing atom list.
663-
# Expect the atom not to be added and gives a ValueError.
663+
# Expect the atom to be added and gives a UserWarning.
664664
structure = Structure(
665665
[Atom("C", [0.1, 0.2, 0.3]), Atom("Ni", [0.8, 1.2, 0.9])],
666666
lattice=Lattice(),

0 commit comments

Comments
 (0)