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

Method test_default_update_doc

Lib/test/test_functools.py:996–998  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

994 @unittest.skipIf(sys.flags.optimize >= 2,
995 "Docstrings are omitted with -O2 and above")
996 def test_default_update_doc(self):
997 wrapper, _ = self._default_update()
998 self.assertEqual(wrapper.__doc__, 'This is a test')
999
1000 def test_no_update(self):
1001 def f():

Callers

nothing calls this directly

Calls 2

_default_updateMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected