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

Method test_free_after_iterating

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

Source from the content-addressed store, hash-verified

1257 self.assertRaises(RuntimeError, d.update, other)
1258
1259 def test_free_after_iterating(self):
1260 support.check_free_after_iterating(self, iter, dict)
1261 support.check_free_after_iterating(self, lambda d: iter(d.keys()), dict)
1262 support.check_free_after_iterating(self, lambda d: iter(d.values()), dict)
1263 support.check_free_after_iterating(self, lambda d: iter(d.items()), dict)
1264
1265 def test_equal_operator_modifying_operand(self):
1266 # test fix for seg fault reported in bpo-27945 part 3.

Callers

nothing calls this directly

Calls 3

keysMethod · 0.45
valuesMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected