Skip to content

Commit

Permalink
Add map clear for test_SpaceGroup_fromPars_HM_noSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Oct 31, 2024
1 parent 0f4465e commit 550420d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit_tests/Components/test_SpaceGroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ def test_SpaceGroup_fromPars_HM_Full(sg_in):
f_value[0] = known_conversions[f_value[0]]
assert getattr(f, g_item) in f_value


# FAILED tests/unit_tests/Components/test_SpaceGroup.py::test_SpaceGroup_fromPars_HM_noSpace[I41/a:2] - RuntimeError: dictionary changed size during iteration
# Adding map clear because of these errors happening ONLY in 3.12
@pytest.mark.parametrize('sg_in', SYM, ids=[sg['hermann_mauguin'] for sg in SYM])
def test_SpaceGroup_fromPars_HM_noSpace(sg_in):
global_object.map._clear()
if sg_in['hermann_mauguin'] in ['C2eb', 'R12/c1("rhombohedral"setting)', 'B1211', 'B121/m1', 'P4bm',
'C1c1', 'Pmc21', 'Cmm2', 'P121/c1', 'Pmma', 'P12/c1', 'Pmmm', 'P1211', 'Pnma']:
return # This is a known issue
Expand Down

0 comments on commit 550420d

Please sign in to comment.