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

Method test_copy

Lib/test/test_dictviews.py:288–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

286 self.assertRaises(RecursionError, repr, d)
287
288 def test_copy(self):
289 d = {1: 10, "a": "ABC"}
290 self.assertRaises(TypeError, copy.copy, d.keys())
291 self.assertRaises(TypeError, copy.copy, d.values())
292 self.assertRaises(TypeError, copy.copy, d.items())
293
294 def test_compare_error(self):
295 class Exc(Exception):

Callers

nothing calls this directly

Calls 4

assertRaisesMethod · 0.45
keysMethod · 0.45
valuesMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected