Home
last modified time | relevance | path

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

/third_party/python/Lib/test/test_importlib/import_/
Dtest_packages.py30 module_code={'pkg': __init__})
47 module_code={'pkg': __init__})
67 module_code={'pkg.subpkg': __init__})
96 module_code={'mod': module_injection})
Dtest_fromlist.py88 def module_code(): function
91 module_code={'pkg.mod': module_code}) as importer:
/third_party/python/Lib/test/test_importlib/
Dutil.py219 def __init__(self, *names, module_code={}): argument
221 self.module_code = {}
241 if import_name in module_code:
242 self.module_code[import_name] = module_code[import_name]
271 if fullname in self.module_code:
273 self.module_code[fullname]()
301 self.module_code[module.__spec__.name]()
Dtest_api.py91 with test_util.mock_spec(*modules, module_code=code) as mock:
218 module_code={'top_level': code})