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

Method test_copy

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

Source from the content-addressed store, hash-verified

287 self.assertRaises(RecursionError, repr, d)
288
289 def test_copy(self):
290 d = {1: 10, "a": "ABC"}
291 self.assertRaises(TypeError, copy.copy, d.keys())
292 self.assertRaises(TypeError, copy.copy, d.values())
293 self.assertRaises(TypeError, copy.copy, d.items())
294
295 @unittest.expectedFailure # TODO: RUSTPYTHON
296 def test_compare_error(self):

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