Home
last modified time | relevance | path

Searched refs:load_module (Results 1 – 25 of 47) sorted by relevance

12

/third_party/python/Lib/test/test_importlib/extension/
Dtest_loader.py24 def load_module(self, fullname): member in LoaderTests
27 return self.loader.load_module(fullname)
33 self.loader.load_module()
34 self.loader.load_module(None)
36 self.load_module('XXX')
50 module = self.load_module(util.EXTENSIONS.name)
67 module1 = self.load_module(util.EXTENSIONS.name)
68 module2 = self.load_module(util.EXTENSIONS.name)
77 self.load_module(name)
102 def load_module(self): member in MultiPhaseExtensionModuleTests
[all …]
/third_party/python/Lib/test/test_importlib/builtin/
Dtest_loader.py27 def load_module(self, name): member in LoaderTests
30 return self.machinery.BuiltinImporter.load_module(name)
35 module = self.load_module(util.BUILTINS.good_name)
47 module1 = self.load_module(util.BUILTINS.good_name)
48 module2 = self.load_module(util.BUILTINS.good_name)
55 self.load_module(name)
67 self.load_module(module_name)
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py98 module = self.machinery.FrozenImporter.load_module('__hello__')
112 module = self.machinery.FrozenImporter.load_module('__phello__')
131 module = self.machinery.FrozenImporter.load_module('__phello__.spam')
148 module1 = self.machinery.FrozenImporter.load_module('__hello__')
149 module2 = self.machinery.FrozenImporter.load_module('__hello__')
158 module = self.machinery.FrozenImporter.load_module('__hello__')
171 self.machinery.FrozenImporter.load_module('_not_real')
/third_party/python/Lib/test/test_importlib/import_/
Dtest_caching.py56 original_load = mock.load_module
57 def load_module(self, fullname): function
60 mock.load_module = MethodType(load_module, mock)
Dtest___loader__.py41 def load_module(self, fullname): member in LoaderMock
Dtest_api.py37 def load_module(cls, fullname): member in BadLoaderFinder
/third_party/python/Lib/test/test_importlib/source/
Dtest_file_loader.py47 module = loader.load_module() # Should not raise an exception.
80 module = loader.load_module('_temp')
93 module = loader.load_module('_pkg')
108 module = loader.load_module('_pkg.mod')
124 module = loader.load_module('_temp')
131 module = loader.load_module('_temp')
158 loader.load_module(name)
171 loader.load_module('_temp')
185 mod = loader.load_module('_temp')
223 mod = loader.load_module('_temp')
[all …]
Dtest_source_encoding.py110 return loader.load_module(self.module_name)
166 return loader.load_module(module_name)
/third_party/spirv-tools/tools/diff/
Ddiff.cpp72 static std::unique_ptr<spvtools::opt::IRContext> load_module(const char* path) { in load_module() function
185 std::unique_ptr<spvtools::opt::IRContext> src = load_module(src_file); in main()
186 std::unique_ptr<spvtools::opt::IRContext> dst = load_module(dst_file); in main()
/third_party/python/Python/
Dmakeopcodetargets.py20 return imp.load_module(modname, *imp.find_module(modname, [modpath]))
27 return SourceFileLoader(modname, modpath).load_module()
/third_party/python/Lib/test/
Dtest_imp.py170 mod = imp.load_module(temp_mod_name, file, filename, info)
221 new_os = imp.load_module("os", *x)
235 mod = imp.load_module(example, *x)
276 imp.load_module(name, None, *found[1:])
378 mod = imp.load_module('mymod', file, path, description)
Dtest_modulefinder.py429 def load_module(self, fqname, fp, pathname, file_info): member in ModuleFinderTest.test_load_module_api.CheckLoadModuleApi
432 return super().load_module(fqname, fp, pathname, file_info)
Dtest_zipimport.py466 load_mod = find_mod.load_module('spam')
469 mod = zi.load_module(TESTPACK)
575 mod = zi.load_module(TESTPACK2)
595 load_mod = find_mod_dotted.load_module(TESTMOD)
835 self.assertRaises(TypeError, z.load_module, None)
850 self.assertRaises(error, z.load_module, 'abc')
/third_party/python/Lib/test/test_importlib/
Dtest_util.py169 def load_module(self, module): member in ModuleForLoaderTests.test_reload.FakeLoader
178 returned_module = loader.load_module(name)
229 def load_module(self, module): member in ModuleForLoaderTests.test_attributes_set.FakeLoader
235 module = loader.load_module(name)
243 module = loader.load_module(name)
326 def load_module(self, module): member in SetLoaderTests.DummyLoader.DummyLoader
340 self.assertEqual(loader, loader.load_module('blah').__loader__)
348 self.assertEqual(loader, loader.load_module('blah').__loader__)
356 self.assertEqual(42, loader.load_module('blah').__loader__)
Dtest_abc.py205 def load_module(self, fullname): member in Loader
206 return super().load_module(fullname)
219 self.ins.load_module('something')
470 loader.load_module(name)
491 loader.load_module(name)
853 module = self.loader.load_module(self.name)
868 module = self.loader.load_module(self.name)
/third_party/python/Lib/
Dmodulefinder.py161 self.load_module('__main__', fp, pathname, stuff)
168 self.load_module(name, fp, pathname, stuff)
323 m = self.load_module(fqname, fp, pathname, stuff)
332 def load_module(self, fqname, fp, pathname, file_info): member in ModuleFinder
479 self.load_module(fqname, fp, buf, stuff)
/third_party/pulseaudio/src/modules/
Dstdin-util.c119 void load_module( in load_module() function
223 load_module(m, i, module, args, i >= m->n_items); in handle_event()
Dstdin-util.h70 void load_module(
/third_party/python/Lib/importlib/
Dabc.py214 load_module = _bootstrap_external._LoaderBasics.load_module variable in InspectLoader
D_abc.py24 def load_module(self, fullname): member in Loader
D_bootstrap.py617 spec.loader.load_module(name)
632 spec.loader.load_module(spec.name)
801 load_module = classmethod(_load_module_shim) variable in BuiltinImporter
859 def load_module(cls, fullname): member in FrozenImporter
D_bootstrap_external.py885 def load_module(self, fullname): member in _LoaderBasics
1054 def load_module(self, fullname): member in FileLoader
1063 return super(FileLoader, self).load_module(fullname)
1301 def load_module(self, fullname): member in _NamespaceLoader
/third_party/python/Doc/library/
Dimp.rst80 :func:`find_module` and :func:`load_module` to find and load package *P*, and
92 .. function:: load_module(name, file, pathname, description)
116 called :func:`imp.load_module` and related functions directly with file
389 :func:`load_module` has been added in 1.4.) ::
407 return imp.load_module(name, fp, pathname, description)
Dimportlib.rst416 .. method:: load_module(fullname)
473 it instead of load_module(). The import machinery takes care of
474 all the other responsibilities of load_module() when exec_module()
655 .. method:: load_module(fullname)
657 Implementation of :meth:`Loader.load_module`.
702 .. method:: load_module(fullname)
704 Calls super's ``load_module()``.
791 .. method:: load_module(fullname)
793 Concrete implementation of :meth:`Loader.load_module`.
1292 .. method:: load_module(name=None)
[all …]
/third_party/libabigail/tests/
Dmockfedabipkgdiff.in88 module = loader.load_module()

12