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

Class X

Lib/test/test_reprlib.py:840–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838
839 def test__wrapped__(self):
840 class X:
841 def __repr__(self):
842 return 'X()'
843 f = __repr__ # save reference to check it later
844 __repr__ = recursive_repr()(__repr__)
845
846 self.assertIs(X.f, X.__repr__.__wrapped__)
847

Callers

nothing calls this directly

Calls 1

recursive_reprFunction · 0.90

Tested by

no test coverage detected