Skip to content

Commit

Permalink
Add map clear before calling Lattice constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Oct 31, 2024
1 parent a9050b7 commit 1d5eac1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit_tests/Components/test_Lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@ def test_Lattice_from_pars(value: list, ang_unit: str):
else:
assert i == r


#FAILED tests/unit_tests/Components/test_Lattice.py::test_Lattice_from_matrix[monoclinic] - RuntimeError: dictionary changed size during iteration
# Adding map clear because of these errors happening ONLY in 3.12
@pytest.mark.parametrize("value", matrix_pars)
def test_Lattice_from_matrix(value):
global_object.map._clear()
args = value[0:-1]
matrix = value[-1]
l = Lattice.from_matrix(matrix)
Expand Down

0 comments on commit 1d5eac1

Please sign in to comment.