(self)
| 1236 | @unittest.skipIf(support.MISSING_C_DOCSTRINGS, |
| 1237 | "Signature information for builtins requires docstrings") |
| 1238 | def test_cmp_to_signature(self): |
| 1239 | sig = Signature.from_callable(self.cmp_to_key) |
| 1240 | self.assertEqual(str(sig), '(mycmp)') |
| 1241 | def mycmp(x, y): |
| 1242 | return y - x |
| 1243 | sig = Signature.from_callable(self.cmp_to_key(mycmp)) |
| 1244 | self.assertEqual(str(sig), '(obj)') |
| 1245 | |
| 1246 | |
| 1247 |
nothing calls this directly
no test coverage detected