| 156 | |
| 157 | |
| 158 | class TestBoxListPaths: |
| 159 | def test_tuple_indexing_into_non_list(self): |
| 160 | bl = BoxList([[1, 2], {"a": 1}]) |
| 161 | assert bl[0, 1] == 2 |
| 162 | with pytest.raises(BoxTypeError, match="numpy-style"): |
| 163 | bl[1, 0] |
| 164 | |
| 165 | def test_dotted_delete_into_non_container(self): |
| 166 | bl = BoxList([5], box_dots=True) |
| 167 | with pytest.raises(TypeError): |
| 168 | del bl["[0].x"] |
| 169 | assert bl == [5] |
| 170 | |
| 171 | |
| 172 | class TestBoxListPickleFormats: |
nothing calls this directly
no outgoing calls
no test coverage detected