MCPcopy Create free account
hub / github.com/cdgriffith/Box / BadIndex

Class BadIndex

test/test_box_list.py:712–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710@pytest.mark.parametrize("comments", [False, True])
711def test_invalid_index_does_not_change_items_or_comments(operation, comments):
712 class BadIndex:
713 def __index__(self):
714 raise ValueError("invalid index")
715
716 values = BoxList(["a", "b", "c"])
717 if comments:

Calls

no outgoing calls