()
| 286 | |
| 287 | |
| 288 | def test_broken_repr() -> None: |
| 289 | class BrokenRepr: |
| 290 | def __repr__(self): |
| 291 | 1 / 0 |
| 292 | |
| 293 | test = [BrokenRepr()] |
| 294 | result = pretty_repr(test) |
| 295 | expected = "[<repr-error 'division by zero'>]" |
| 296 | assert result == expected |
| 297 | |
| 298 | |
| 299 | def test_broken_getattr() -> None: |
nothing calls this directly
no test coverage detected