Home
last modified time | relevance | path

Searched refs:import_state (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_path.py25 with util.import_state():
34 with util.import_state(path_importer_cache={path: importer},
45 with util.import_state(path_importer_cache={path: importer}):
54 with util.import_state(path_importer_cache={path: importer},
65 with util.import_state(path_hooks=[hook]):
75 with util.import_state(path_importer_cache={}, path_hooks=[],
90 with util.import_state(path=[path], path_hooks=[hook]):
108 with util.import_state(meta_path=sys.meta_path[:],
125 with util.import_state(path_importer_cache={path: failing_finder}):
130 with util.import_state(path_importer_cache={path: success_finder}):
[all …]
Dtest_fromlist.py21 with util.import_state(meta_path=[importer]):
28 with util.import_state(meta_path=[importer]):
56 with util.import_state(meta_path=[importer]):
63 with util.import_state(meta_path=[importer]):
71 with util.import_state(meta_path=[importer]):
79 with util.import_state(meta_path=[importer]):
92 with util.import_state(meta_path=[importer]):
99 with util.import_state(meta_path=[importer]):
106 with util.import_state(meta_path=[mock]):
124 with util.import_state(meta_path=[mock]):
[all …]
Dtest_packages.py13 with util.import_state(meta_path=[mock]):
19 with util.import_state(meta_path=[mock]):
31 with util.import_state(meta_path=[mock]):
48 with util.import_state(meta_path=[mock]):
68 with util.import_state(meta_path=[mock]):
97 with util.import_state(meta_path=[mock]):
Dtest_meta_path.py21 with util.import_state(meta_path=[first, second]):
30 with util.import_state(meta_path=[first, second]):
40 with util.import_state(meta_path=[]):
75 with util.import_state(meta_path=[importer]):
93 with util.import_state(meta_path=[importer]):
Dtest___package__.py39 with util.import_state(meta_path=[importer]):
133 with util.import_state(meta_path=[mock]):
141 with util.import_state(meta_path=[mock]):
149 with util.import_state(meta_path=[mock]):
Dtest___loader__.py25 with util.uncache('blah'), util.import_state(meta_path=[loader]):
55 with util.uncache('blah'), util.import_state(meta_path=[loader]):
64 with util.uncache('blah'), util.import_state(meta_path=[loader]):
Dtest_caching.py67 with util.import_state(meta_path=[mock]):
75 with util.import_state(meta_path=[importer]):
85 with util.import_state(meta_path=[importer]):
Dtest_api.py67 with util.import_state(meta_path=[self.bad_finder_loader]):
78 with util.import_state(meta_path=[self.bad_finder_loader]):
90 with util.import_state(meta_path=[self.bad_finder_loader]):
Dtest_relative_imports.py68 with util.import_state(meta_path=[importer]):
/external/python/cpython2/Lib/test/
Dtest_importlib.py35 def import_state(**kwargs): function
124 with import_state(meta_path=[mock]):
134 with import_state(meta_path=[mock]):
141 with import_state(meta_path=[mock]):
149 with import_state(meta_path=[mock]):
160 with import_state(meta_path=[mock]):
/external/python/cpython3/Lib/test/test_importlib/
Dtest_api.py22 with test_util.import_state(meta_path=[mock]):
32 with test_util.import_state(meta_path=[mock]):
44 with test_util.import_state(meta_path=[mock]):
52 with test_util.import_state(meta_path=[mock]):
65 with test_util.import_state(meta_path=[mock]):
90 with test_util.import_state(meta_path=[mock]):
149 with test_util.import_state(meta_path=[self.FakeMetaFinder]):
159 with test_util.import_state(meta_path=[self.FakeMetaFinder]):
216 with test_util.import_state(meta_path=[mock]):
Dtest_lazy.py83 with test_util.import_state(meta_path=[importer]):
Dutil.py183 def import_state(**kwargs): function
391 state_manager = import_state(path=[temp_dir])
Dtest_namespace_pkgs.py49 import_context = util.import_state(**kwargs)
Dtest_util.py466 with util.import_state(meta_path=[self.FakeMetaFinder]):
/external/python/cpython3/Lib/test/
Dtest_compileall.py147 with test.test_importlib.util.import_state(path=[self.directory]):
150 with test.test_importlib.util.import_state(path=[self.directory]):