(self)
| 1242 | self.check_reentrant_insertion(mutate) |
| 1243 | |
| 1244 | def test_merge_and_mutate(self): |
| 1245 | class X: |
| 1246 | def __hash__(self): |
| 1247 | return 0 |
| 1248 | |
| 1249 | def __eq__(self, o): |
| 1250 | other.clear() |
| 1251 | return False |
| 1252 | |
| 1253 | l = [(i,0) for i in range(1, 1337)] |
| 1254 | other = dict(l) |
| 1255 | other[X()] = 0 |
| 1256 | d = {X(): 0, 1: 1} |
| 1257 | self.assertRaises(RuntimeError, d.update, other) |
| 1258 | |
| 1259 | def test_free_after_iterating(self): |
| 1260 | support.check_free_after_iterating(self, iter, dict) |
nothing calls this directly
no test coverage detected