(self)
| 631 | |
| 632 | class CompatPickleTests(unittest.TestCase): |
| 633 | def test_import(self): |
| 634 | modules = set(IMPORT_MAPPING.values()) |
| 635 | modules |= set(REVERSE_IMPORT_MAPPING) |
| 636 | modules |= {module for module, name in REVERSE_NAME_MAPPING} |
| 637 | modules |= {module for module, name in NAME_MAPPING.values()} |
| 638 | for module in modules: |
| 639 | try: |
| 640 | getmodule(module) |
| 641 | except ImportError: |
| 642 | pass |
| 643 | |
| 644 | def test_import_mapping(self): |
| 645 | for module3, module2 in REVERSE_IMPORT_MAPPING.items(): |