(self)
| 1162 | [0, 1, 1, 2, 3, 4, 5, 7, 10]) |
| 1163 | |
| 1164 | def test_hash(self): |
| 1165 | def mycmp(x, y): |
| 1166 | return y - x |
| 1167 | key = self.cmp_to_key(mycmp) |
| 1168 | k = key(10) |
| 1169 | self.assertRaises(TypeError, hash, k) |
| 1170 | self.assertNotIsInstance(k, collections.abc.Hashable) |
| 1171 | |
| 1172 | @unittest.skipIf(support.MISSING_C_DOCSTRINGS, |
| 1173 | "Signature information for builtins requires docstrings") |
no test coverage detected