Home
last modified time | relevance | path

Searched refs:module_code (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_packages.py29 module_code={'pkg': __init__})
46 module_code={'pkg': __init__})
66 module_code={'pkg.subpkg': __init__})
95 module_code={'mod': module_injection})
Dtest_fromlist.py88 def module_code(): function
91 module_code={'pkg.mod': module_code}) as importer:
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py217 def __init__(self, *names, module_code={}): argument
219 self.module_code = {}
239 if import_name in module_code:
240 self.module_code[import_name] = module_code[import_name]
269 if fullname in self.module_code:
271 self.module_code[fullname]()
299 self.module_code[module.__spec__.name]()
Dtest_api.py89 with test_util.mock_modules(*modules, module_code=code) as mock:
214 module_code={'top_level': code})