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

Method test_Class_repr

Lib/test/test_clinic.py:4768–4770  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4766 self.assertRegex(repr(module), r"<clinic.Module 'foo' at \d+>")
4767
4768 def test_Class_repr(self):
4769 cls = Class("foo", _make_clinic(), None, 'some_typedef', 'some_type_object')
4770 self.assertRegex(repr(cls), r"<clinic.Class 'foo' at \d+>")
4771
4772 def test_FunctionKind_repr(self):
4773 self.assertEqual(

Callers

nothing calls this directly

Calls 3

ClassClass · 0.90
_make_clinicFunction · 0.85
assertRegexMethod · 0.80

Tested by

no test coverage detected