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

Method test_splittable_pop_pending

Lib/test/test_dict.py:1033–1039  ·  view source on GitHub ↗

pop a pending key in a split table should not crash

(self)

Source from the content-addressed store, hash-verified

1031
1032 @support.cpython_only
1033 def test_splittable_pop_pending(self):
1034 """pop a pending key in a split table should not crash"""
1035 a, b = self.make_shared_key_dict(2)
1036
1037 a['a'] = 4
1038 with self.assertRaises(KeyError):
1039 b.pop('a')
1040
1041 @support.cpython_only
1042 def test_splittable_popitem(self):

Callers

nothing calls this directly

Calls 3

make_shared_key_dictMethod · 0.95
assertRaisesMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected