MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_splittable_pop_pending

Method test_splittable_pop_pending

Lib/test/test_dict.py:1036–1042  ·  view source on GitHub ↗

pop a pending key in a split table should not crash

(self)

Source from the content-addressed store, hash-verified

1034
1035 @support.cpython_only
1036 def test_splittable_pop_pending(self):
1037 """pop a pending key in a split table should not crash"""
1038 a, b = self.make_shared_key_dict(2)
1039
1040 a['a'] = 4
1041 with self.assertRaises(KeyError):
1042 b.pop('a')
1043
1044 @support.cpython_only
1045 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