Home
last modified time | relevance | path

Searched refs:find_spec (Results 1 – 25 of 55) sorted by relevance

123

/third_party/python/Lib/test/test_importlib/import_/
Dtest_path.py130 self.machinery.PathFinder.find_spec('whatever', [path]))
136 spec = self.machinery.PathFinder.find_spec('whatever', [path])
150 self.machinery.PathFinder.find_spec('whatever', [path]))
156 spec = self.machinery.PathFinder.find_spec('whatever', [path])
162 def find_spec(self, fullname, target=None): member in FinderTests.test_finder_with_find_spec.TestFinder
167 self.machinery.PathFinder.find_spec('whatever', [path]))
171 got = self.machinery.PathFinder.find_spec('whatever', [path])
194 self.assertIsNone(self.machinery.PathFinder.find_spec('whatever'))
234 return self.machinery.PathFinder.find_spec(*args, **kwargs)
264 self.machinery.PathFinder.find_spec('importlib')
Dtest___loader__.py12 def find_spec(self, fullname, path=None, target=None): member in SpecLoaderMock
Dtest_api.py15 def find_spec(cls, fullname, path=None, target=None): member in BadSpecFinderLoader
Dtest_meta_path.py29 first.find_spec = lambda self, fullname, path=None, parent=None: None
/third_party/python/Lib/test/test_importlib/extension/
Dtest_finder.py14 def find_spec(self, fullname): member in FinderTests
19 return importer.find_spec(fullname)
22 self.assertTrue(self.find_spec(util.EXTENSIONS.name))
34 self.assertIsNone(self.find_spec('asdfjkl;'))
Dtest_case_sensitivity.py15 def find_spec(self): member in ExtensionModuleCaseSensitivityTest
22 return finder.find_spec(bad_name)
29 spec = self.find_spec()
37 spec = self.find_spec()
/third_party/python/Lib/test/test_importlib/
Dtest_util.py406 def find_spec(name, path=None, target=None): return name, path, target member in FindSpecTests.FakeMetaFinder
417 found = self.util.find_spec(name)
429 found = self.util.find_spec(name)
439 self.util.find_spec(name)
448 found = self.util.find_spec(name)
461 self.util.find_spec(name)
468 self.util.find_spec(name))
472 self.assertIsNone(self.util.find_spec('nevergoingtofindthismodule'))
479 spec = self.util.find_spec(fullname)
484 spec_again = self.util.find_spec(fullname)
[all …]
Dtest_threaded_import.py77 def find_spec(self, name, path=None, target=None): member in Finder
92 def find_spec(self, name, path=None, target=None): member in FlushingFinder
164 finder.find_spec('')
170 flushing_finder.find_spec('')
Dtest_windows.py84 spec = self.machinery.WindowsRegistryFinder.find_spec('spam')
98 spec = self.machinery.WindowsRegistryFinder.find_spec(self.test_module)
107 spec = self.machinery.WindowsRegistryFinder.find_spec(self.test_module)
Dtest_api.py180 def find_spec(name, path=None, target=None): member in FindLoaderPEP451Tests.FakeMetaFinder
443 if self.machinery.BuiltinImporter.find_spec(name):
445 elif self.machinery.FrozenImporter.find_spec(name):
453 if self.machinery.BuiltinImporter.find_spec(name):
455 elif self.machinery.FrozenImporter.find_spec(name):
Dtest_abc.py359 def find_spec(self, fullname, path, target=None): member in MetaPathFinderFindModuleTests.finder.MetaPathSpecFinder
377 found = finder.find_spec('blah', 'blah', None)
384 found = finder.find_spec(name, path, None)
393 found = finder.find_spec('blah', None)
409 def find_spec(self, fullname, target=None): member in PathEntryFinderFindLoaderTests.finder.PathEntrySpecFinder
Dtest_lazy.py45 def find_spec(self, name, path, target=None): member in TestingImporter
/third_party/python/Lib/test/test_importlib/builtin/
Dtest_finder.py19 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name)
38 spec = self.machinery.BuiltinImporter.find_spec(name)
44 spec = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name,
/third_party/python/Lib/idlelib/
Dmainmenu.py11 from importlib.util import find_spec
118 if find_spec('turtledemo'):
/third_party/python/Lib/
Dpkgutil.py30 find_spec = finder.find_spec
37 return find_spec(name)
495 spec = importlib.util.find_spec(fullname)
566 spec = finder.find_spec(final_name)
621 spec = importlib.util.find_spec(package)
/third_party/python/Lib/importlib/
D_bootstrap.py747 def find_spec(cls, fullname, path=None, target=None): member in BuiltinImporter
767 spec = cls.find_spec(fullname, path)
827 def find_spec(cls, fullname, path=None, target=None): member in FrozenImporter
939 find_spec = finder.find_spec
945 spec = find_spec(name, path, target)
1155 spec = BuiltinImporter.find_spec(name)
D_bootstrap_external.py829 def find_spec(cls, fullname, path=None, target=None): member in WindowsRegistryFinder
854 spec = cls.find_spec(fullname, path)
1402 spec = finder.find_spec(fullname, target)
1423 def find_spec(cls, fullname, path=None, target=None): member in PathFinder
1457 spec = cls.find_spec(fullname, path)
1517 spec = self.find_spec(fullname)
1527 def find_spec(self, fullname, target=None): member in FileFinder
Dabc.py89 found = self.find_spec(fullname, path)
130 found = self.find_spec(fullname)
Dutil.py73 def find_spec(name, package=None): function
/third_party/python/Doc/library/
Dzipimport.rst98 Use :meth:`find_spec` instead.
111 Use :meth:`find_spec` instead.
114 .. method:: find_spec(fullname, target=None)
116 An implementation of :meth:`importlib.abc.PathEntryFinder.find_spec`.
Dimportlib.rst136 Use :func:`importlib.util.find_spec` instead.
261 Implement :meth:`MetaPathFinder.find_spec` or
262 :meth:`PathEntryFinder.find_spec` instead.
275 .. method:: find_spec(fullname, path, target=None)
297 If :meth:`find_spec` is defined, backwards-compatible functionality is
302 :exc:`NotImplementedError`. Can use :meth:`find_spec` to provide
306 Use :meth:`find_spec` instead.
330 .. method:: find_spec(fullname, target=None)
354 If :meth:`find_spec` is defined then backwards-compatible functionality is
359 Uses :meth:`find_spec` when available to provide functionality.
[all …]
/third_party/python/Lib/test/
Dtest_zipimport.py473 spec = zi.find_spec('spam')
481 spec = zi.find_spec(TESTPACK)
544 spec = zi.find_spec('spam2')
552 self.assertIsNone(zi.find_spec("name_does_not_matter"))
578 spec = zi.find_spec(TESTPACK2)
600 spec = zi2.find_spec(TESTMOD)
740 spec = zipimport.zipimporter(filename).find_spec(TESTMOD)
837 self.assertRaises(TypeError, z.find_spec, None)
846 self.assertIsNone(z.find_spec('abc'))
/third_party/python/Doc/reference/
Dimport.rst278 pair: finder; find_spec
284 :meth:`~importlib.abc.MetaPathFinder.find_spec()` which takes three arguments:
295 The :meth:`~importlib.abc.MetaPathFinder.find_spec()` method of meta path
309 ``mpf.find_spec("foo", None, None)`` on each meta path finder (``mpf``). After
312 ``mpf.find_spec("foo.bar", foo.__path__, None)``. Once ``foo.bar`` has been
314 ``mpf.find_spec("foo.bar.baz", foo.bar.__path__, None)``.
326 The :meth:`~importlib.abc.MetaPathFinder.find_spec` method of meta path
330 ``find_spec()``.
427 :meth:`~importlib.abc.MetaPathFinder.find_spec` method would just return a
784 :meth:`~importlib.abc.MetaPathFinder.find_spec` protocol previously
[all …]
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_finder.py16 return finder.find_spec(name, path)
/third_party/python/Lib/test/test_importlib/source/
Dtest_case_sensitivity.py81 found = finder.find_spec(self.name)

123