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.py206 def __init__(self, *names, module_code={}): argument
208 self.module_code = {}
228 if import_name in module_code:
229 self.module_code[import_name] = module_code[import_name]
258 if fullname in self.module_code:
260 self.module_code[fullname]()
288 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})