Home
last modified time | relevance | path

Searched refs:meta_path (Results 1 – 25 of 68) sorted by relevance

123

/external/python/cpython3/Lib/test/test_importlib/import_/
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]):
/external/python/cpython2/Lib/test/
Dtest_importlib.py124 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]):
Dtest_importhooks.py143 self.meta_path = sys.meta_path[:]
150 sys.meta_path[:] = self.meta_path
220 sys.meta_path.append(i)
231 sys.meta_path.append(ImportBlocker(mname))
236 sys.meta_path.append(i)
Dtest_pkgutil.py114 sys.meta_path.insert(0, self.MyTestImporter())
117 del sys.meta_path[0]
/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]):
397 sys.meta_path.insert(0, meta_ins)
[all …]
Dtest_threaded_import.py146 sys.meta_path.insert(0, finder)
152 sys.meta_path.remove(finder)
166 sys.meta_path.append(flushing_finder)
174 sys.meta_path.remove(flushing_finder)
Dfixtures.py38 sys.meta_path.append(finder)
42 sys.meta_path.remove(finder)
/external/python/cpython3/Lib/test/
Dtest_doctest.py2684 self.meta_path = sys.meta_path[:]
2690 sys.meta_path.append(self.importer)
2694 sys.meta_path[:] = self.meta_path
Dtest_zipimport_support.py68 self.meta_path = sys.meta_path[:]
74 sys.meta_path[:] = self.meta_path
/external/python/setuptools/pkg_resources/extern/
D__init__.py68 if self not in sys.meta_path:
69 sys.meta_path.append(self)
/external/python/setuptools/setuptools/extern/
D__init__.py68 if self not in sys.meta_path:
69 sys.meta_path.append(self)
/external/python/cpython3/Tools/importbench/
Dimportbench.py69 sys.meta_path.append(importlib.machinery.PathFinder)
105 sys.meta_path.append(importlib.machinery.PathFinder)
139 sys.meta_path.append(importlib.machinery.PathFinder)
/external/python/cpython3/Lib/importlib/
D_bootstrap.py903 meta_path = sys.meta_path
904 if meta_path is None:
909 if not meta_path:
916 for finder in meta_path:
1180 sys.meta_path.append(BuiltinImporter)
1181 sys.meta_path.append(FrozenImporter)
/external/autotest/client/cros/crash/
Dcrash_test.py461 meta_path = meta_match.group(1)
464 meta_path = None
500 'meta_path': meta_path,
Duser_crash_test.py358 def _check_generated_report_sending(self, meta_path, payload_path, argument
374 if result['meta_path'] != meta_path:
376 result['meta_path'], meta_path))
/external/python/jinja/tests/
Dtest_loader.py376 before = sys.meta_path[:]
379 sys.meta_path.insert(0, ImportHook())
383 sys.meta_path[:] = before
/external/autotest/server/
Dsite_crashcollect.py394 meta_path = os.path.splitext(minidump_path)[0] + '.meta'
395 with open(meta_path, 'r') as f:
/external/python/six/
Dsix.py879 if sys.meta_path:
880 for i, importer in enumerate(sys.meta_path):
887 del sys.meta_path[i]
891 sys.meta_path.append(_importer)
/external/llvm-project/lldb/third_party/Python/module/six/
Dsix.py875 if sys.meta_path:
876 for i, importer in enumerate(sys.meta_path):
883 del sys.meta_path[i]
887 sys.meta_path.append(_importer)

123