| 749 | @pytest.mark.parametrize("comments", [False, True]) |
| 750 | def test_invalid_index_does_not_change_items_or_comments(operation, comments): |
| 751 | class BadIndex: |
| 752 | def __index__(self): |
| 753 | raise ValueError("invalid index") |
| 754 | |
| 755 | values = BoxList(["a", "b", "c"]) |
| 756 | if comments: |
no outgoing calls