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

Method test_field_doc_reuse

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

namedtupleFunction · 0.90
assertIsMethod · 0.45

Tested by

no test coverage detected