MCPcopy Index your code
hub / github.com/python/cpython / test_dictitems_contains_use_after_free

Method test_dictitems_contains_use_after_free

Lib/test/test_dict.py:1328–1335  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1326 pass
1327
1328 def test_dictitems_contains_use_after_free(self):
1329 class X:
1330 def __eq__(self, other):
1331 d.clear()
1332 return NotImplemented
1333
1334 d = {0: set()}
1335 (0, X()) in d.items()
1336
1337 def test_dict_contain_use_after_free(self):
1338 # bpo-40489

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
XClass · 0.70
itemsMethod · 0.45

Tested by

no test coverage detected