Home
last modified time | relevance | path

Searched refs:__import__ (Results 1 – 25 of 132) sorted by relevance

123456

/third_party/python/Lib/test/test_importlib/import_/
Dtest_relative_imports.py81 self.__import__('pkg') # For __import__().
82 module = self.__import__('', global_, fromlist=['mod2'], level=1)
93 self.__import__('pkg') # For __import__().
94 module = self.__import__('mod2', global_, fromlist=['attr'],
106 self.__import__('pkg') # For __import__().
107 module = self.__import__('', global_, fromlist=['module'],
119 self.__import__('pkg') # For __import__().
120 module = self.__import__('', global_, fromlist=['attr'], level=1)
131 module = self.__import__('', global_, fromlist=['subpkg2'],
148 self.__import__(globals_[0]['__package__'])
[all …]
Dtest_fromlist.py22 module = self.__import__('pkg.module')
29 module = self.__import__('pkg.module', fromlist=['attr'])
35 ) = util.test_both(ReturnValue, __import__=util.__import__)
57 module = self.__import__('module', fromlist=['attr'])
64 module = self.__import__('module', fromlist=['non_existent'])
72 module = self.__import__('pkg', fromlist=['module'])
80 module = self.__import__('pkg', fromlist=['non_existent'])
94 self.__import__('pkg', fromlist=['mod'])
100 module = self.__import__('pkg.mod', fromlist=[''])
108 module = self.__import__('pkg', fromlist=fromlist)
[all …]
Dtest_packages.py15 module = self.__import__('pkg.module')
22 self.__import__('pkg.module')
34 self.__import__('pkg')
38 self.__import__('pkg.module')
53 self.__import__('pkg')
56 self.__import__('pkg.module')
73 self.__import__('pkg.subpkg')
76 self.__import__('pkg.subpkg.module')
85 self.__import__('sys.no_submodules_here')
100 submodule = self.__import__(subname)
[all …]
Dtest___package__.py40 self.__import__('pkg.fake')
41 module = self.__import__('',
85 self.__import__('', globals, {}, ['relimport'], 1)
90 self.__import__('', globals, {}, ['relimport'], 1)
114 ) = util.test_both(Using__package__PEP302, __import__=util.__import__)
123 ) = util.test_both(Using__package__PEP451, __import__=util.__import__)
138 __import__ = util.__import__['Source'] variable in Setting__package__
145 module = self.__import__('top_level')
153 module = self.__import__('pkg')
161 pkg = self.__import__('pkg.mod')
Dtest_caching.py30 module = self.__import__('some_module')
39 self.__import__(name)
45 ) = util.test_both(UseCache, __import__=util.__import__)
52 __import__ = util.__import__['Source'] variable in ImportlibUseCache
71 module = self.__import__('module')
81 module = self.__import__('pkg.module')
93 module = self.__import__('pkg', fromlist=['module'])
Dtest_meta_path.py22 self.assertIs(self.__import__(mod), first.modules[mod])
31 self.assertIs(self.__import__(mod_name), second.modules[mod_name])
51 ) = util.test_both(CallingOrder, __import__=util.__import__)
76 self.__import__(mod_name)
94 self.__import__(mod_name)
123 ) = util.test_both(CallSignaturePEP302, __import__=util.__import__)
133 ) = util.test_both(CallSignaturePEP451, __import__=util.__import__)
Dtest___loader__.py27 module = self.__import__('blah')
33 ) = util.test_both(SpecLoaderAttributeTests, __import__=util.__import__)
59 module = self.__import__('blah')
70 returned_module = self.__import__('blah')
76 ) = util.test_both(LoaderAttributeTests, __import__=util.__import__)
Dtest_api.py54 self.__import__(42)
61 self.__import__('os', globals(), level=-1)
71 self.__import__(PKG_NAME, fromlist=['not here'])
83 self.__import__(PKG_NAME,
96 self.__import__(PKG_NAME,
137 ) = util.test_both(OldAPITests, __import__=util.__import__)
146 ) = util.test_both(SpecAPITests, __import__=util.__import__)
/third_party/mindspore/mindspore/_extends/parallel_compile/tbe_compiler/
Dhelper.py50 op_module = __import__(op_name)
52 op_module = __import__("impl." + op_name, globals(), locals(), [op_name], 0)
100 op_module = __import__(op_name)
102 op_module = __import__("impl.dynamic." + op_name, globals(), locals(), [op_name], 0)
104 op_module = __import__("impl." + op_name, globals(), locals(), [op_name], 0)
/third_party/python/Lib/test/test_import/
D__init__.py171 mod = __import__(TESTFN)
246 self.assertRaises(ZeroDivisionError, __import__, TESTFN)
289 mod = __import__(TESTFN)
328 mod = __import__(TESTFN)
334 mod = __import__(TESTFN)
351 __import__(path)
383 __import__(TESTFN)
392 __import__('http', fromlist=['blah'])
529 module = __import__(name)
548 __import__(name)
[all …]
/third_party/curl/tests/data/
Dtest145132__import__('pkgutil').find_loader('impacket') or (__import__('sys').stdout.write('Test only works …
/third_party/protobuf/python/google/protobuf/pyext/
D__init__.py2 __import__('pkg_resources').declare_namespace(__name__)
4 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/
D__init__.py2 __import__('pkg_resources').declare_namespace(__name__)
4 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/
D__init__.py2 __import__('pkg_resources').declare_namespace(__name__)
4 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
/third_party/protobuf/python/google/
D__init__.py2 __import__('pkg_resources').declare_namespace(__name__)
4 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/
D__init__.py2 __import__('pkg_resources').declare_namespace(__name__)
4 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
D__init__.py35 __import__('pkg_resources').declare_namespace(__name__)
37 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
/third_party/protobuf/python/google/protobuf/
D__init__.py37 __import__('pkg_resources').declare_namespace(__name__)
39 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
/third_party/python/Lib/test/test_importlib/
Dtest_pkg_import.py54 try: __import__(self.module_name)
68 try: __import__(self.module_name)
75 module = __import__(self.module_name).foo
/third_party/python/Tools/importbench/
Dimportbench.py171 __builtins__.__import__ = import_
196 len(benchmarks) * seconds * repeat, __import__))
240 import_ = __import__
242 import_ = importlib.__import__
/third_party/mindspore/mindspore/_extends/parse/
Dnamespace.py60 mod_dict = vars(__import__(name, fromlist=['_']))
69 mod_dict = vars(__import__(name, fromlist=['_']))
/third_party/nghttp2/doc/_exts/sphinxcontrib/
D__init__.py13 __import__('pkg_resources').declare_namespace(__name__)
/third_party/boost/tools/build/src/tools/types/
D__init__.py14 m = __import__ (__name__ + '.' + i)
/third_party/python/Lib/test/
Dmp_preload.py14 __import__(modname)
Dxmltests.py10 __import__(name)

123456