(self)
| 180 | self.assertEqual(copy.copy(x), x) |
| 181 | |
| 182 | def test_copy_inst_getinitargs(self): |
| 183 | class C: |
| 184 | def __init__(self, foo): |
| 185 | self.foo = foo |
| 186 | def __getinitargs__(self): |
| 187 | return (self.foo,) |
| 188 | def __eq__(self, other): |
| 189 | return self.foo == other.foo |
| 190 | x = C(42) |
| 191 | self.assertEqual(copy.copy(x), x) |
| 192 | |
| 193 | def test_copy_inst_getnewargs(self): |
| 194 | class C(int): |
nothing calls this directly
no test coverage detected