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

Method test_setdefault

Lib/test/mapping_tests.py:291–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

289 self.assertRaises(ValueError, d.update, [(1, 2, 3)])
290
291 def test_setdefault(self):
292 d = self._empty_mapping()
293 self.assertRaises(TypeError, d.setdefault)
294
295 def test_popitem(self):
296 d = self._empty_mapping()

Callers

nothing calls this directly

Calls 2

_empty_mappingMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected