(self)
| 169 | self.assertEqual(copy.copy(x), x) |
| 170 | |
| 171 | def test_copy_inst_copy(self): |
| 172 | class C: |
| 173 | def __init__(self, foo): |
| 174 | self.foo = foo |
| 175 | def __copy__(self): |
| 176 | return C(self.foo) |
| 177 | def __eq__(self, other): |
| 178 | return self.foo == other.foo |
| 179 | x = C(42) |
| 180 | self.assertEqual(copy.copy(x), x) |
| 181 | |
| 182 | def test_copy_inst_getinitargs(self): |
| 183 | class C: |
nothing calls this directly
no test coverage detected