Searched refs:import_module (Results 1 – 25 of 144) sorted by relevance
123456
/third_party/python/Lib/test/test_importlib/import_/ |
D | test___package__.py | 37 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/ |
D | test_api.py | 25 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 …]
|
D | test_resource.py | 9 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')))
|
D | test_reader.py | 6 from importlib import import_module 108 namespacedata01 = import_module('namespacedata01') 120 namespacedata01 = import_module('namespacedata01')
|
D | test_read.py | 3 from importlib import import_module, resources 49 submodule = import_module('ziptestdata.subdirectory')
|
/third_party/python/Lib/test/ |
D | test_idle.py | 2 from test.support.import_helper import import_module 7 tk = import_module('tkinter') # Also imports _tkinter. 10 idlelib = import_module('idlelib')
|
D | test_audit.py | 58 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")
|
D | test_zipimport.py | 136 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 …]
|
D | test_ctypes.py | 2 from test.support.import_helper import import_module 5 ctypes_test = import_module('ctypes.test')
|
D | test_ioctl.py | 4 from test.support.import_helper import import_module 6 fcntl = import_module('fcntl') 7 termios = import_module('termios')
|
D | test_tix.py | 7 _tkinter = import_helper.import_module('_tkinter') 13 tix = import_helper.import_module('tkinter.tix', deprecated=True)
|
D | test_sundry.py | 16 import_helper.import_module('test.test_{}'.format(name)) 18 importlib.import_module(name)
|
D | test_picklebuffer.py | 78 ndarray = import_helper.import_module("_testbuffer").ndarray 112 ndarray = import_helper.import_module("_testbuffer").ndarray 138 ndarray = import_helper.import_module("_testbuffer").ndarray
|
D | test_xxlimited.py | 5 xxlimited = import_helper.import_module('xxlimited') 6 xxlimited_35 = import_helper.import_module('xxlimited_35')
|
D | test__opcode.py | 2 from test.support.import_helper import import_module 5 _opcode = import_module("_opcode")
|
/third_party/mindspore/mindspore/offline_debug/ |
D | convert_async.py | 24 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/ |
D | run_check.py | 27 from importlib import import_module 31 ms = import_module("mindspore")
|
/third_party/python/Lib/test/support/ |
D | import_helper.py | 65 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/ |
D | htest.py | 69 from importlib import import_module 399 mod = import_module('idlelib.' + test_spec['file'])
|
/third_party/mindspore/mindspore/train/callback/ |
D | _dataset_graph.py | 17 from importlib import import_module 35 dataset_package = import_module('mindspore.dataset')
|
/third_party/mindspore/mindspore/mindrecord/tools/ |
D | cifar10_to_mr.py | 19 from importlib import import_module 30 cv2 = import_module("cv2")
|
D | cifar100_to_mr.py | 19 from importlib import import_module 30 cv2 = import_module("cv2")
|
D | csv_to_mr.py | 18 from importlib import import_module 26 pd = import_module("pandas")
|
/third_party/python/Lib/ |
D | pkgutil.py | 192 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/ |
D | test_csv_to_mindrecord.py | 17 from importlib import import_module 25 pd = import_module('pandas')
|
123456