(self)
| 1226 | [0, 1, 1, 2, 3, 4, 5, 7, 10]) |
| 1227 | |
| 1228 | def test_hash(self): |
| 1229 | def mycmp(x, y): |
| 1230 | return y - x |
| 1231 | key = self.cmp_to_key(mycmp) |
| 1232 | k = key(10) |
| 1233 | self.assertRaises(TypeError, hash, k) |
| 1234 | self.assertNotIsInstance(k, collections.abc.Hashable) |
| 1235 | |
| 1236 | @unittest.skipIf(support.MISSING_C_DOCSTRINGS, |
| 1237 | "Signature information for builtins requires docstrings") |
nothing calls this directly
no test coverage detected