(self)
| 186 | self.assertEqual(copy.copy(x), x) |
| 187 | |
| 188 | def test_copy_inst_getinitargs(self): |
| 189 | class C: |
| 190 | def __init__(self, foo): |
| 191 | self.foo = foo |
| 192 | def __getinitargs__(self): |
| 193 | return (self.foo,) |
| 194 | def __eq__(self, other): |
| 195 | return self.foo == other.foo |
| 196 | x = C(42) |
| 197 | self.assertEqual(copy.copy(x), x) |
| 198 | |
| 199 | def test_copy_inst_getnewargs(self): |
| 200 | class C(int): |
nothing calls this directly
no test coverage detected