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

Method testRecursiveRepr

Lib/test/test_fileio.py:202–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200
201 @infinite_recursion(25)
202 def testRecursiveRepr(self):
203 # Issue #25455
204 with swap_attr(self.f, 'name', self.f):
205 with self.assertRaises(RuntimeError):
206 repr(self.f) # Should not crash
207
208 def testErrors(self):
209 f = self.f

Callers

nothing calls this directly

Calls 3

swap_attrFunction · 0.90
reprFunction · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected