Home
last modified time | relevance | path

Searched refs:import_module (Results 1 – 25 of 144) sorted by relevance

123456

/third_party/python/Lib/test/test_importlib/import_/
Dtest___package__.py37 def import_module(self, globals_): member in Using__package__
48 module = self.import_module({'__package__': 'pkg.fake'})
55 module = self.import_module({'__name__': 'pkg.fake',
61 self.import_module({'__name__': 'pkg.fake', '__path__': []})
67 module = self.import_module({
73 module = self.import_module({'__spec__': FakeSpec('pkg.fake')})
79 self.import_module({'__package__': 'pkg.fake',
/third_party/python/Lib/test/test_importlib/
Dtest_api.py25 module = self.init.import_module('top_level')
35 module = self.init.import_module(name)
47 self.init.import_module(pkg_name)
48 module = self.init.import_module(relative_name, pkg_name)
55 self.init.import_module('a')
56 self.init.import_module('a.b')
57 module = self.init.import_module('..c', 'a.b')
68 self.init.import_module(pkg_name)
69 module = self.init.import_module(name, pkg_name)
76 self.init.import_module('.support')
[all …]
Dtest_resource.py9 from importlib import resources, import_module
104 submodule = import_module('ziptestdata.subdirectory')
113 submodule = import_module('ziptestdata.subdirectory')
158 self.data = import_module('ziptestdata')
230 resources.is_resource(import_module('namespacedata01'), 'binary.file')
237 contents = set(resources.contents(import_module('namespacedata01')))
Dtest_reader.py6 from importlib import import_module
108 namespacedata01 = import_module('namespacedata01')
120 namespacedata01 = import_module('namespacedata01')
Dtest_read.py3 from importlib import import_module, resources
49 submodule = import_module('ziptestdata.subdirectory')
/third_party/python/Lib/test/
Dtest_idle.py2 from test.support.import_helper import import_module
7 tk = import_module('tkinter') # Also imports _tkinter.
10 idlelib = import_module('idlelib')
Dtest_audit.py58 import_helper.import_module("marshal")
63 import_helper.import_module("pickle")
100 import_helper.import_module("winreg")
114 import_helper.import_module("socket")
140 import_helper.import_module("http.client")
Dtest_zipimport.py136 mod = importlib.import_module(".".join(modules))
318 mod = importlib.import_module(TESTPACK)
330 mod = importlib.import_module(packdir3.replace(os.sep, '.')[:-1])
336 mod = importlib.import_module('.'.join((TESTPACK, TESTMOD)))
340 mod = importlib.import_module('.'.join((TESTPACK, TESTMOD + '2')))
346 mod = importlib.import_module(subpkg)
353 mod = importlib.import_module('.'.join((subpkg, TESTMOD)))
358 mod = importlib.import_module('.'.join((subpkg, TESTMOD + '2')))
363 mod = importlib.import_module('.'.join((subpkg, TESTMOD + '3')))
394 mod = importlib.import_module(TESTPACK)
[all …]
Dtest_ctypes.py2 from test.support.import_helper import import_module
5 ctypes_test = import_module('ctypes.test')
Dtest_ioctl.py4 from test.support.import_helper import import_module
6 fcntl = import_module('fcntl')
7 termios = import_module('termios')
Dtest_tix.py7 _tkinter = import_helper.import_module('_tkinter')
13 tix = import_helper.import_module('tkinter.tix', deprecated=True)
Dtest_sundry.py16 import_helper.import_module('test.test_{}'.format(name))
18 importlib.import_module(name)
Dtest_picklebuffer.py78 ndarray = import_helper.import_module("_testbuffer").ndarray
112 ndarray = import_helper.import_module("_testbuffer").ndarray
138 ndarray = import_helper.import_module("_testbuffer").ndarray
Dtest_xxlimited.py5 xxlimited = import_helper.import_module('xxlimited')
6 xxlimited_35 = import_helper.import_module('xxlimited_35')
Dtest__opcode.py2 from test.support.import_helper import import_module
5 _opcode = import_module("_opcode")
/third_party/mindspore/mindspore/offline_debug/
Dconvert_async.py24 from importlib import import_module
77 self.utils = import_module('utils')
78 self.common = import_module('common')
79 self.dump_data_parser = import_module(
81 self.format_conversion = import_module(
90 self.progress = import_module("progress").Progress
94 self.log = import_module("log")
100 compare_error = import_module("compare_error")
/third_party/mindspore/mindspore/run_check/
Drun_check.py27 from importlib import import_module
31 ms = import_module("mindspore")
/third_party/python/Lib/test/support/
Dimport_helper.py65 def import_module(name, deprecated=False, *, required_on=()): function
76 return importlib.import_module(name)
137 return importlib.import_module(name)
/third_party/python/Lib/idlelib/idle_test/
Dhtest.py69 from importlib import import_module
399 mod = import_module('idlelib.' + test_spec['file'])
/third_party/mindspore/mindspore/train/callback/
D_dataset_graph.py17 from importlib import import_module
35 dataset_package = import_module('mindspore.dataset')
/third_party/mindspore/mindspore/mindrecord/tools/
Dcifar10_to_mr.py19 from importlib import import_module
30 cv2 = import_module("cv2")
Dcifar100_to_mr.py19 from importlib import import_module
30 cv2 = import_module("cv2")
Dcsv_to_mr.py18 from importlib import import_module
26 pd = import_module("pandas")
/third_party/python/Lib/
Dpkgutil.py192 imp = importlib.import_module('imp')
449 pkg = importlib.import_module(pkg_name)
691 mod = importlib.import_module(gd['pkg'])
699 mod = importlib.import_module(modname)
704 mod = importlib.import_module(s)
/third_party/mindspore/tests/ut/python/mindrecord/
Dtest_csv_to_mindrecord.py17 from importlib import import_module
25 pd = import_module('pandas')

123456