Home
last modified time | relevance | path

Searched refs:mock_spec (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Lib/test/test_importlib/import_/
Dtest_fromlist.py20 with util.mock_spec('pkg.__init__', 'pkg.module') as importer:
27 with util.mock_spec('pkg.__init__', 'pkg.module')as importer:
55 with util.mock_spec('module') as importer:
62 with util.mock_spec('module') as importer:
70 with util.mock_spec('pkg.__init__', 'pkg.module') as importer:
78 with util.mock_spec('pkg.__init__') as importer:
90 with util.mock_spec('pkg.__init__', 'pkg.mod',
98 with util.mock_spec('pkg.__init__', 'pkg.mod') as importer:
105 with util.mock_spec('pkg.__init__', 'pkg.module') as mock:
122 context = util.mock_spec('pkg.__init__', 'pkg.module1', 'pkg.module2')
[all …]
Dtest_packages.py13 with util.mock_spec('pkg.__init__', 'pkg.module') as mock:
19 with util.mock_spec('pkg.module') as mock:
29 mock = util.mock_spec('pkg.__init__', 'pkg.module',
46 mock = util.mock_spec('pkg.__init__', 'pkg.module',
65 mock = util.mock_spec('pkg.__init__', 'pkg.subpkg.__init__',
95 mock_spec = util.mock_spec('mod',
97 with mock_spec as mock:
Dtest_meta_path.py20 with util.mock_spec(mod) as first, util.mock_spec(mod) as second:
27 with util.mock_spec('nonexistent') as first, \
28 util.mock_spec(mod_name) as second:
127 mock_modules = util.mock_spec
Dtest_path.py33 importer = util.mock_spec(module)
44 importer = util.mock_spec(module)
53 importer = util.mock_spec(module)
63 importer = util.mock_spec(module)
89 importer = util.mock_spec(module)
Dtest___package__.py118 mock_modules = util.mock_spec
184 mock_modules = util.mock_spec
Dtest_relative_imports.py67 with util.mock_spec(*create) as importer:
/third_party/python/Lib/test/test_importlib/
Dtest_api.py23 with test_util.mock_spec('top_level') as mock:
33 with test_util.mock_spec(pkg_long_name, name) as mock:
45 with test_util.mock_spec(pkg_long_name, absolute_name) as mock:
53 with test_util.mock_spec(*modules) as mock:
66 with test_util.mock_spec(pkg_long_name, name) as mock:
91 with test_util.mock_spec(*modules, module_code=code) as mock:
217 mock = test_util.mock_spec('top_level',
Dutil.py280 class mock_spec(_ImporterMock): class