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

Method test_builtin_update

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

Source from the content-addressed store, hash-verified

870 @unittest.skipIf(sys.flags.optimize >= 2,
871 "Docstrings are omitted with -O2 and above")
872 def test_builtin_update(self):
873 # Test for bug #1576241
874 def wrapper():
875 pass
876 functools.update_wrapper(wrapper, max)
877 self.assertEqual(wrapper.__name__, 'max')
878 self.assertStartsWith(wrapper.__doc__, 'max(')
879 self.assertEqual(wrapper.__annotations__, {})
880
881 def test_update_type_wrapper(self):
882 def wrapper(*args): pass

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
assertStartsWithMethod · 0.45

Tested by

no test coverage detected