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

Method test_builtin_update

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

Source from the content-addressed store, hash-verified

934 @unittest.skipIf(sys.flags.optimize >= 2,
935 "Docstrings are omitted with -O2 and above")
936 def test_builtin_update(self):
937 # Test for bug #1576241
938 def wrapper():
939 pass
940 functools.update_wrapper(wrapper, max)
941 self.assertEqual(wrapper.__name__, 'max')
942 self.assertStartsWith(wrapper.__doc__, 'max(')
943 self.assertEqual(wrapper.__annotations__, {})
944
945 def test_update_type_wrapper(self):
946 def wrapper(*args): pass

Callers

nothing calls this directly

Calls 2

assertStartsWithMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected