MCPcopy Index your code
hub / github.com/python/cpython / test_deeply_nested_repr

Method test_deeply_nested_repr

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

Source from the content-addressed store, hash-verified

280 @skip_wasi_stack_overflow()
281 @skip_emscripten_stack_overflow()
282 def test_deeply_nested_repr(self):
283 d = {}
284 for i in range(exceeds_recursion_limit()):
285 d = {42: d.values()}
286 self.assertRaises(RecursionError, repr, d)
287
288 def test_copy(self):
289 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