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

Method test_field_doc_reuse

Lib/test/test_collections.py:439–443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

437 @unittest.skipIf(sys.flags.optimize >= 2,
438 "Docstrings are omitted with -O2 and above")
439 def test_field_doc_reuse(self):
440 P = namedtuple('P', ['m', 'n'])
441 Q = namedtuple('Q', ['o', 'p'])
442 self.assertIs(P.m.__doc__, Q.o.__doc__)
443 self.assertIs(P.n.__doc__, Q.p.__doc__)
444
445 @support.cpython_only
446 def test_field_repr(self):

Callers

nothing calls this directly

Calls 2

namedtupleFunction · 0.90
assertIsMethod · 0.45

Tested by

no test coverage detected