Skip to content

Commit

Permalink
Fix a CodeQL warning (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmelnikow authored Dec 14, 2022
1 parent 6137a61 commit d416b69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lacecore/test_group_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def test_group_map_get_item():
with pytest.raises(ValueError, match="assignment destination is read-only"):
groups["empty"][3] = True
with pytest.raises(KeyError, match="Unknown group: nope"):
groups["nope"]
# Assign for CodeQL.
_ = groups["nope"]


def test_group_map_iteration():
Expand Down

0 comments on commit d416b69

Please sign in to comment.