(self)
| 69 | self.assertEqual(c, [1]) |
| 70 | |
| 71 | def test_copy_reduce(self): |
| 72 | class C(object): |
| 73 | def __reduce__(self): |
| 74 | c.append(1) |
| 75 | return "" |
| 76 | c = [] |
| 77 | x = C() |
| 78 | y = copy.copy(x) |
| 79 | self.assertIs(y, x) |
| 80 | self.assertEqual(c, [1]) |
| 81 | |
| 82 | def test_copy_cant(self): |
| 83 | class C(object): |
nothing calls this directly
no test coverage detected