コード例 #1
0
ファイル: test_pickle.py プロジェクト: zzz-i2p/cpython
 def test_import(self):
     modules = set(IMPORT_MAPPING.values())
     modules |= set(REVERSE_IMPORT_MAPPING)
     modules |= {module for module, name in REVERSE_NAME_MAPPING}
     modules |= {module for module, name in NAME_MAPPING.values()}
     for module in modules:
         try:
             getmodule(module)
         except ImportError:
             pass
コード例 #2
0
ファイル: test_pickle.py プロジェクト: LPRD/build_tools
 def test_import(self):
     modules = set(IMPORT_MAPPING.values())
     modules |= set(REVERSE_IMPORT_MAPPING)
     modules |= {module for module, name in REVERSE_NAME_MAPPING}
     modules |= {module for module, name in NAME_MAPPING.values()}
     for module in modules:
         try:
             getmodule(module)
         except ImportError:
             pass