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