(self)
| 265 | {}.items() - 1 |
| 266 | |
| 267 | def test_recursive_repr(self): |
| 268 | d = {} |
| 269 | d[42] = d.values() |
| 270 | r = repr(d) |
| 271 | # Cannot perform a stronger test, as the contents of the repr |
| 272 | # are implementation-dependent. All we can say is that we |
| 273 | # want a str result, not an exception of any sort. |
| 274 | self.assertIsInstance(r, str) |
| 275 | d[42] = d.items() |
| 276 | r = repr(d) |
| 277 | # Again. |
| 278 | self.assertIsInstance(r, str) |
| 279 | |
| 280 | @skip_wasi_stack_overflow() |
| 281 | @skip_emscripten_stack_overflow() |
nothing calls this directly
no test coverage detected