(self, defs, mod)
| 588 | self.assert_roundtrip_equal(instances) |
| 589 | |
| 590 | def assert_class_defs_other_pickle(self, defs, mod): |
| 591 | # Pickle relative to a different module than the original. |
| 592 | for cls in defs.TOP_CLASSES: |
| 593 | assert not hasattr(mod, cls.__name__), (cls, getattr(mod, cls.__name__)) |
| 594 | self.assert_not_shareable(defs.TOP_CLASSES) |
| 595 | |
| 596 | instances = [] |
| 597 | for cls, args in defs.TOP_CLASSES.items(): |
| 598 | instances.append(cls(*args)) |
| 599 | self.assert_not_shareable(instances) |
| 600 | |
| 601 | def assert_class_defs_other_unpickle(self, defs, mod, *, fail=False): |
| 602 | # Unpickle relative to a different module than the original. |
nothing calls this directly
no test coverage detected