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

Method test_copy_inst_vanilla

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

Source from the content-addressed store, hash-verified

166 self.assertIsNot(y, x)
167
168 def test_copy_inst_vanilla(self):
169 class C:
170 def __init__(self, foo):
171 self.foo = foo
172 def __eq__(self, other):
173 return self.foo == other.foo
174 x = C(42)
175 self.assertEqual(copy.copy(x), x)
176
177 def test_copy_inst_copy(self):
178 class C:

Callers

nothing calls this directly

Calls 3

CClass · 0.70
assertEqualMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected