(self)
| 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 |
nothing calls this directly
no test coverage detected