(self)
| 352 | self.assertIs(f_copy.keywords, f.keywords) |
| 353 | |
| 354 | def test_deepcopy(self): |
| 355 | f = self.partial(signature, ['asdf'], bar=[True]) |
| 356 | f.attr = [] |
| 357 | f_copy = copy.deepcopy(f) |
| 358 | self.assertEqual(signature(f_copy), signature(f)) |
| 359 | self.assertIsNot(f_copy.attr, f.attr) |
| 360 | self.assertIsNot(f_copy.args, f.args) |
| 361 | self.assertIsNot(f_copy.args[0], f.args[0]) |
| 362 | self.assertIsNot(f_copy.keywords, f.keywords) |
| 363 | self.assertIsNot(f_copy.keywords['bar'], f.keywords['bar']) |
| 364 | |
| 365 | def test_setstate(self): |
| 366 | f = self.partial(signature) |
nothing calls this directly
no test coverage detected