(self)
| 335 | f.__setstate__((capture, (), {}, {})) |
| 336 | |
| 337 | def test_pickle(self): |
| 338 | with replaced_module('functools', self.module): |
| 339 | f = self.partial(signature, ['asdf'], bar=[True]) |
| 340 | f.attr = [] |
| 341 | for proto in range(pickle.HIGHEST_PROTOCOL + 1): |
| 342 | f_copy = pickle.loads(pickle.dumps(f, proto)) |
| 343 | self.assertEqual(signature(f_copy), signature(f)) |
| 344 | |
| 345 | def test_copy(self): |
| 346 | f = self.partial(signature, ['asdf'], bar=[True]) |
nothing calls this directly
no test coverage detected