Home
last modified time | relevance | path

Searched refs:mock_modules (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_fromlist.py27 with util.mock_modules('pkg.__init__', 'pkg.module')as importer:
55 with util.mock_modules('module') as importer:
62 with util.mock_modules('module') as importer:
70 with util.mock_modules('pkg.__init__', 'pkg.module') as importer:
78 with util.mock_modules('pkg.__init__') as importer:
90 with util.mock_modules('pkg.__init__', 'pkg.mod',
98 with util.mock_modules('pkg.__init__', 'pkg.mod') as importer:
105 with util.mock_modules('pkg.__init__', 'pkg.module') as mock:
122 context = util.mock_modules('pkg.__init__', 'pkg.module1', 'pkg.module2')
134 with util.mock_modules('pkg.__init__') as importer:
[all …]
Dtest___package__.py38 with self.mock_modules('pkg.__init__', 'pkg.fake') as importer:
99 mock_modules = util.mock_modules variable in Using__package__PEP302
108 mock_modules = util.mock_spec variable in Using__package__PEP451
132 with self.mock_modules('top_level') as mock:
140 with self.mock_modules('pkg.__init__') as mock:
148 with self.mock_modules('pkg.__init__', 'pkg.mod') as mock:
156 mock_modules = util.mock_modules variable in Setting__package__PEP302
159 mock_modules = util.mock_spec variable in Setting__package__PEP451
Dtest_meta_path.py72 with self.mock_modules(mod_name) as importer:
89 with self.mock_modules(pkg_name+'.__init__', mod_name) as importer:
105 mock_modules = util.mock_modules variable in CallSignaturePEP302
115 mock_modules = util.mock_spec variable in CallSignaturePEP451
Dtest_caching.py54 mock = util.mock_modules(*names)
/external/python/cpython2/Lib/test/
Dtest_importlib.py65 class mock_modules(object): class
123 with mock_modules('top_level') as mock:
133 with mock_modules(pkg_long_name, name) as mock:
140 with mock_modules(*modules) as mock:
148 with mock_modules(*modules) as mock:
159 with mock_modules(pkg_long_name, name) as mock:
/external/python/cpython3/Lib/test/test_importlib/
Dtest_api.py21 with test_util.mock_modules('top_level') as mock:
31 with test_util.mock_modules(pkg_long_name, name) as mock:
43 with test_util.mock_modules(pkg_long_name, absolute_name) as mock:
51 with test_util.mock_modules(*modules) as mock:
64 with test_util.mock_modules(pkg_long_name, name) as mock:
89 with test_util.mock_modules(*modules, module_code=code) as mock:
213 mock = test_util.mock_modules('top_level',
Dutil.py243 class mock_modules(_ImporterMock): class