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

Method test_factory_doc_attr

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

Source from the content-addressed store, hash-verified

413 @unittest.skipIf(sys.flags.optimize >= 2,
414 "Docstrings are omitted with -O2 and above")
415 def test_factory_doc_attr(self):
416 Point = namedtuple('Point', 'x y')
417 self.assertEqual(Point.__doc__, 'Point(x, y)')
418 Point.__doc__ = '2D point'
419 self.assertEqual(Point.__doc__, '2D point')
420
421 @unittest.skipIf(sys.flags.optimize >= 2,
422 "Docstrings are omitted with -O2 and above")

Callers

nothing calls this directly

Calls 2

namedtupleFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected