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

Method test_Module_repr

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

Source from the content-addressed store, hash-verified

4762 self.assertEqual(repr(destination2), "<clinic.Destination 'bar' type='buffer'>")
4763
4764 def test_Module_repr(self):
4765 module = Module("foo", _make_clinic())
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')

Callers

nothing calls this directly

Calls 3

ModuleClass · 0.90
_make_clinicFunction · 0.85
assertRegexMethod · 0.80

Tested by

no test coverage detected