MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_deeply_nested_repr

Method test_deeply_nested_repr

Lib/test/test_dictviews.py:283–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

281 @skip_wasi_stack_overflow()
282 @skip_emscripten_stack_overflow()
283 def test_deeply_nested_repr(self):
284 d = {}
285 for i in range(exceeds_recursion_limit()):
286 d = {42: d.values()}
287 self.assertRaises(RecursionError, repr, d)
288
289 def test_copy(self):
290 d = {1: 10, "a": "ABC"}

Callers

nothing calls this directly

Calls 3

exceeds_recursion_limitFunction · 0.90
valuesMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected