(self)
| 175 | self.assertEqual(copy.copy(x), x) |
| 176 | |
| 177 | def test_copy_inst_copy(self): |
| 178 | class C: |
| 179 | def __init__(self, foo): |
| 180 | self.foo = foo |
| 181 | def __copy__(self): |
| 182 | return C(self.foo) |
| 183 | def __eq__(self, other): |
| 184 | return self.foo == other.foo |
| 185 | x = C(42) |
| 186 | self.assertEqual(copy.copy(x), x) |
| 187 | |
| 188 | def test_copy_inst_getinitargs(self): |
| 189 | class C: |
nothing calls this directly
no test coverage detected