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

Method test_copy_inst_vanilla

Lib/test/test_copy.py:162–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

160 self.assertIsNot(y, x)
161
162 def test_copy_inst_vanilla(self):
163 class C:
164 def __init__(self, foo):
165 self.foo = foo
166 def __eq__(self, other):
167 return self.foo == other.foo
168 x = C(42)
169 self.assertEqual(copy.copy(x), x)
170
171 def test_copy_inst_copy(self):
172 class C:

Callers

nothing calls this directly

Calls 3

CClass · 0.70
assertEqualMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected