(self)
| 5700 | self._check_reduce(proto, obj, listitems=list(obj)) |
| 5701 | |
| 5702 | def test_special_method_lookup(self): |
| 5703 | protocols = range(pickle.HIGHEST_PROTOCOL + 1) |
| 5704 | class Picky: |
| 5705 | def __getstate__(self): |
| 5706 | return {} |
| 5707 | |
| 5708 | def __getattr__(self, attr): |
| 5709 | if attr in ("__getnewargs__", "__getnewargs_ex__"): |
| 5710 | raise AssertionError(attr) |
| 5711 | return None |
| 5712 | for protocol in protocols: |
| 5713 | state = {} if protocol >= 2 else None |
| 5714 | self._check_reduce(protocol, Picky(), state=state) |
| 5715 | |
| 5716 | def _assert_is_copy(self, obj, objcopy, msg=None): |
| 5717 | """Utility method to verify if two objects are copies of each others. |
nothing calls this directly
no test coverage detected