/third_party/python/Lib/test/test_importlib/frozen/ |
D | test_loader.py | 4 machinery = util.import_importlib('importlib.machinery') variable 16 spec = self.machinery.ModuleSpec( 17 name, self.machinery.FrozenImporter, origin='frozen', 18 is_package=self.machinery.FrozenImporter.is_package(name)) 22 self.machinery.FrozenImporter.exec_module(module) 67 repr_str = self.machinery.FrozenImporter.module_repr(module) 81 assert self.machinery.FrozenImporter.find_spec('_not_real') is None 89 ) = util.test_both(ExecModuleTests, machinery=machinery) 98 module = self.machinery.FrozenImporter.load_module('__hello__') 101 '__loader__': self.machinery.FrozenImporter, [all …]
|
D | test_finder.py | 4 machinery = util.import_importlib('importlib.machinery') variable 15 finder = self.machinery.FrozenImporter 44 ) = util.test_both(FindSpecTests, machinery=machinery) 52 finder = self.machinery.FrozenImporter 83 ) = util.test_both(FinderTests, machinery=machinery)
|
/third_party/python/Lib/test/test_importlib/ |
D | test_windows.py | 2 machinery = test_util.import_importlib('importlib.machinery') variable 57 def setup_module(machinery, name, path=None): argument 58 if machinery.WindowsRegistryFinder.DEBUG_BUILD: 59 root = machinery.WindowsRegistryFinder.REGISTRY_KEY_DEBUG 61 root = machinery.WindowsRegistryFinder.REGISTRY_KEY 72 if machinery.WindowsRegistryFinder.DEBUG_BUILD: 84 spec = self.machinery.WindowsRegistryFinder.find_spec('spam') 90 loader = self.machinery.WindowsRegistryFinder.find_module('spam') 94 with setup_module(self.machinery, self.test_module): 97 loader = self.machinery.WindowsRegistryFinder.find_module(self.test_module) [all …]
|
D | test_spec.py | 4 machinery = test_util.import_importlib('importlib.machinery') variable 72 self.spec = self.machinery.ModuleSpec(self.name, self.loader) 73 self.loc_spec = self.machinery.ModuleSpec(self.name, self.loader, 78 spec = self.machinery.ModuleSpec(self.name, self.loader) 89 spec = self.machinery.ModuleSpec(self.name, None) 100 spec = self.machinery.ModuleSpec(self.name, self.loader, 112 spec = self.machinery.ModuleSpec(self.name, self.loader, 124 spec = self.machinery.ModuleSpec(self.name, self.loader, 171 spec = self.machinery.ModuleSpec('spam.eggs', self.loader) 176 spec = self.machinery.ModuleSpec('spam.eggs', self.loader, [all …]
|
D | test_util.py | 4 machinery = util.import_importlib('importlib.machinery') variable 51 spec = self.machinery.ModuleSpec('test', Loader()) 59 spec = self.machinery.ModuleSpec('test', Loader()) 73 spec = self.machinery.ModuleSpec('test', Loader()) 79 spec = self.machinery.ModuleSpec('test', object()) 84 spec = self.machinery.ModuleSpec('test', object()) 90 spec = self.machinery.ModuleSpec('test', loader) 95 spec = self.machinery.ModuleSpec('test.pkg', object()) 100 spec = self.machinery.ModuleSpec('test', object(), is_package=True) 105 spec = self.machinery.ModuleSpec('test', object(), origin='some/path') [all …]
|
D | test_api.py | 5 machinery = test_util.import_importlib('importlib.machinery') variable 181 return machinery['Source'].ModuleSpec(name, (name, path)) 443 if self.machinery.BuiltinImporter.find_spec(name): 445 elif self.machinery.FrozenImporter.find_spec(name): 453 if self.machinery.BuiltinImporter.find_spec(name): 455 elif self.machinery.FrozenImporter.find_spec(name): 461 ) = test_util.test_both(StartupTests, machinery=machinery)
|
/third_party/python/Lib/test/test_importlib/source/ |
D | test_finder.py | 4 machinery = util.import_importlib('importlib.machinery') variable 42 loader_details = [(self.machinery.SourceFileLoader, 43 self.machinery.SOURCE_SUFFIXES), 44 (self.machinery.SourcelessFileLoader, 45 self.machinery.BYTECODE_SUFFIXES)] 46 return self.machinery.FileFinder(root, *loader_details) 128 finder = self.machinery.FileFinder('', (self.machinery.SourceFileLoader, 129 self.machinery.SOURCE_SUFFIXES)) 140 finder = self.machinery.FileFinder('', (self.machinery.SourceFileLoader, 141 self.machinery.SOURCE_SUFFIXES)) [all …]
|
D | test_case_sensitivity.py | 7 machinery = util.import_importlib('importlib.machinery') variable 26 return self.machinery.FileFinder(path, 27 (self.machinery.SourceFileLoader, 28 self.machinery.SOURCE_SUFFIXES), 29 (self.machinery.SourcelessFileLoader, 30 self.machinery.BYTECODE_SUFFIXES)) 76 machinery=machinery) 88 machinery=machinery)
|
D | test_source_encoding.py | 3 machinery = util.import_importlib('importlib.machinery') variable 41 loader = self.machinery.SourceFileLoader(self.module_name, 102 ) = util.test_both(EncodingTestPEP451, machinery=machinery) 115 ) = util.test_both(EncodingTestPEP302, machinery=machinery) 130 loader = self.machinery.SourceFileLoader(module_name, 158 ) = util.test_both(LineEndingTestPEP451, machinery=machinery) 171 ) = util.test_both(LineEndingTestPEP302, machinery=machinery)
|
D | test_path_hook.py | 3 machinery = util.import_importlib('importlib.machinery') variable 13 return self.machinery.FileFinder.path_hook((self.machinery.SourceFileLoader, 14 self.machinery.SOURCE_SUFFIXES)) 37 ) = util.test_both(PathHookTest, machinery=machinery)
|
D | test_file_loader.py | 6 machinery = util.import_importlib('importlib.machinery') variable 36 self.loader = self.machinery.SourceFileLoader(self.name, self.filepath) 67 other = self.machinery.SourceFileLoader(self.name, self.filepath) 71 other = self.machinery.SourceFileLoader('_' + self.name, self.filepath) 77 loader = self.machinery.SourceFileLoader('_temp', mapping['_temp']) 89 loader = self.machinery.SourceFileLoader('_pkg', 104 loader = self.machinery.SourceFileLoader('_pkg.mod', 121 loader = self.machinery.SourceFileLoader('_temp', mapping['_temp']) 150 loader = self.machinery.SourceFileLoader('_temp', mapping['_temp']) 167 loader = self.machinery.SourceFileLoader('_temp', mapping['_temp']) [all …]
|
/third_party/python/Lib/test/test_importlib/import_/ |
D | test_path.py | 4 machinery = util.import_importlib('importlib.machinery') variable 104 self.machinery.FileFinder.path_hook( 130 self.machinery.PathFinder.find_spec('whatever', [path])) 136 spec = self.machinery.PathFinder.find_spec('whatever', [path]) 150 self.machinery.PathFinder.find_spec('whatever', [path])) 156 spec = self.machinery.PathFinder.find_spec('whatever', [path]) 167 self.machinery.PathFinder.find_spec('whatever', [path])) 169 success_finder.spec = self.machinery.ModuleSpec('whatever', __loader__) 171 got = self.machinery.PathFinder.find_spec('whatever', [path]) 194 self.assertIsNone(self.machinery.PathFinder.find_spec('whatever')) [all …]
|
/third_party/python/Lib/test/test_importlib/builtin/ |
D | test_finder.py | 4 machinery = util.import_importlib('importlib.machinery') variable 19 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name) 38 spec = self.machinery.BuiltinImporter.find_spec(name) 44 spec = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name, 51 ) = util.test_both(FindSpecTests, machinery=machinery) 64 found = self.machinery.BuiltinImporter.find_module(util.BUILTINS.good_name) 78 loader = self.machinery.BuiltinImporter.find_module('importlib') 86 loader = self.machinery.BuiltinImporter.find_module( 94 ) = util.test_both(FinderTests, machinery=machinery)
|
D | test_loader.py | 4 machinery = util.import_importlib('importlib.machinery') variable 18 '__loader__': self.machinery.BuiltinImporter} 30 return self.machinery.BuiltinImporter.load_module(name) 73 ) = util.test_both(LoaderTests, machinery=machinery) 83 result = self.machinery.BuiltinImporter.get_code(util.BUILTINS.good_name) 88 result = self.machinery.BuiltinImporter.get_source(util.BUILTINS.good_name) 93 result = self.machinery.BuiltinImporter.is_package(util.BUILTINS.good_name) 100 method = getattr(self.machinery.BuiltinImporter, meth_name) 107 ) = util.test_both(InspectLoaderTests, machinery=machinery)
|
/third_party/python/Lib/importlib/ |
D | abc.py | 3 from . import machinery 97 _register(MetaPathFinder, machinery.BuiltinImporter, machinery.FrozenImporter, 98 machinery.PathFinder, machinery.WindowsRegistryFinder) 147 _register(PathEntryFinder, machinery.FileFinder) 216 _register(InspectLoader, machinery.BuiltinImporter, machinery.FrozenImporter) 253 _register(ExecutionLoader, machinery.ExtensionFileLoader) 261 _register(FileLoader, machinery.SourceFileLoader, 262 machinery.SourcelessFileLoader) 309 _register(SourceLoader, machinery.SourceFileLoader)
|
/third_party/python/Lib/test/test_importlib/extension/ |
D | test_path_hook.py | 3 machinery = util.import_importlib('importlib.machinery') variable 15 return self.machinery.FileFinder.path_hook( 16 (self.machinery.ExtensionFileLoader, 17 self.machinery.EXTENSION_SUFFIXES))(entry) 27 ) = util.test_both(PathHookTests, machinery=machinery)
|
D | test_loader.py | 5 machinery = util.import_importlib('importlib.machinery') variable 21 self.loader = self.machinery.ExtensionFileLoader(util.EXTENSIONS.name, 39 other = self.machinery.ExtensionFileLoader(util.EXTENSIONS.name, 44 other = self.machinery.ExtensionFileLoader('_' + util.EXTENSIONS.name, 57 self.machinery.ExtensionFileLoader) 82 for suffix in self.machinery.EXTENSION_SUFFIXES: 84 loader = self.machinery.ExtensionFileLoader('pkg', path) 89 ) = util.test_both(LoaderTests, machinery=machinery) 96 finder = self.machinery.FileFinder(None) 99 self.loader = self.machinery.ExtensionFileLoader( [all …]
|
D | test_finder.py | 4 machinery = util.import_importlib('importlib.machinery') variable 15 importer = self.machinery.FileFinder(util.EXTENSIONS.path, 16 (self.machinery.ExtensionFileLoader, 17 self.machinery.EXTENSION_SUFFIXES)) 39 ) = util.test_both(FinderTests, machinery=machinery)
|
D | test_case_sensitivity.py | 8 machinery = util.import_importlib('importlib.machinery') variable 19 finder = self.machinery.FileFinder(util.EXTENSIONS.path, 20 (self.machinery.ExtensionFileLoader, 21 self.machinery.EXTENSION_SUFFIXES)) 44 machinery=machinery)
|
/third_party/python/Tools/importbench/ |
D | importbench.py | 11 import importlib.machinery 69 sys.meta_path.append(importlib.machinery.PathFinder) 70 loader = (importlib.machinery.SourceFileLoader, 71 importlib.machinery.SOURCE_SUFFIXES) 72 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 105 sys.meta_path.append(importlib.machinery.PathFinder) 106 loader = (importlib.machinery.SourceFileLoader, 107 importlib.machinery.SOURCE_SUFFIXES) 108 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 139 sys.meta_path.append(importlib.machinery.PathFinder) [all …]
|
/third_party/python/Lib/ |
D | imp.py | 22 from importlib import machinery 108 extensions = [(s, 'rb', C_EXTENSION) for s in machinery.EXTENSION_SUFFIXES] 109 source = [(s, 'r', PY_SOURCE) for s in machinery.SOURCE_SUFFIXES] 110 bytecode = [(s, 'rb', PY_COMPILED) for s in machinery.BYTECODE_SUFFIXES] 161 class _LoadSourceCompatibility(_HackedGetData, machinery.SourceFileLoader): 175 module.__loader__ = machinery.SourceFileLoader(name, pathname) 203 extensions = (machinery.SOURCE_SUFFIXES[:] + 204 machinery.BYTECODE_SUFFIXES[:]) 283 for suffix in ['.py', machinery.BYTECODE_SUFFIXES[0]]: 336 import importlib.machinery [all …]
|
D | modulefinder.py | 5 import importlib.machinery 60 importlib.machinery.PathFinder.invalidate_caches() 62 spec = importlib.machinery.PathFinder.find_spec(name, path) 69 if spec.loader is importlib.machinery.BuiltinImporter: 72 if spec.loader is importlib.machinery.FrozenImporter: 80 if isinstance(spec.loader, importlib.machinery.SourceFileLoader): 83 elif isinstance(spec.loader, importlib.machinery.ExtensionFileLoader): 86 elif isinstance(spec.loader, importlib.machinery.SourcelessFileLoader): 280 suffixes += importlib.machinery.EXTENSION_SUFFIXES[:] 281 suffixes += importlib.machinery.SOURCE_SUFFIXES[:] [all …]
|
/third_party/python/Lib/test/ |
D | test_cmd_line_script.py | 5 import importlib.machinery 155 expected = repr(importlib.machinery.BuiltinImporter).encode("utf-8") 168 expected = repr(importlib.machinery.BuiltinImporter).encode("utf-8") 223 importlib.machinery.SourceFileLoader, 236 importlib.machinery.SourceFileLoader) 246 importlib.machinery.SourcelessFileLoader) 253 importlib.machinery.SourceFileLoader) 263 importlib.machinery.SourcelessFileLoader) 321 importlib.machinery.SourceFileLoader, 346 importlib.machinery.SourceFileLoader, [all …]
|
/third_party/python/Lib/idlelib/ |
D | pathbrowser.py | 1 import importlib.machinery 84 suffixes = importlib.machinery.EXTENSION_SUFFIXES[:] 85 suffixes += importlib.machinery.SOURCE_SUFFIXES 86 suffixes += importlib.machinery.BYTECODE_SUFFIXES
|
/third_party/libabigail/tests/ |
D | mockfedabipkgdiff.in | 74 import importlib.machinery 75 loader = importlib.machinery.SourceFileLoader(name, path) 86 import importlib.machinery 87 loader = importlib.machinery.SourceFileLoader(name, path)
|