| 710 | @pytest.mark.parametrize("comments", [False, True]) |
| 711 | def 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: |
no outgoing calls