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

Method frozendict_does_not_support

Lib/test/test_capi/test_dict.py:263–266  ·  view source on GitHub ↗
(self, what)

Source from the content-addressed store, hash-verified

261
262 @contextlib.contextmanager
263 def frozendict_does_not_support(self, what):
264 errmsg = f'frozendict object does not support item {what}'
265 with self.assertRaisesRegex(TypeError, errmsg):
266 yield
267
268 def test_dict_setitem(self):
269 # Test PyDict_SetItem()

Callers 11

test_dict_setitemMethod · 0.95
test_dict_delitemMethod · 0.95
test_dict_setdefaultMethod · 0.95
test_dict_updateMethod · 0.95
test_dict_mergeMethod · 0.95
test_dict_popMethod · 0.95
test_dict_popstringMethod · 0.95

Calls 1

assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected