Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_packages.py12 with util.mock_spec('pkg.__init__', 'pkg.module') as mock:
18 with util.mock_spec('pkg.module') as mock:
28 mock = util.mock_spec('pkg.__init__', 'pkg.module',
45 mock = util.mock_spec('pkg.__init__', 'pkg.module',
64 mock = util.mock_spec('pkg.__init__', 'pkg.subpkg.__init__',
94 mock_spec = util.mock_spec('mod',
96 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:
115 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)
88 importer = util.mock_spec(module)
Dtest___package__.py108 mock_modules = util.mock_spec
159 mock_modules = util.mock_spec
Dtest_fromlist.py20 with util.mock_spec('pkg.__init__', 'pkg.module') as importer:
Dtest_relative_imports.py67 with util.mock_spec(*create) as importer:
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py278 class mock_spec(_ImporterMock): class