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

Class X

Lib/test/test_reprlib.py:841–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

recursive_reprFunction · 0.90

Tested by

no test coverage detected