/third_party/python/Lib/test/test_importlib/extension/ |
H A D | test_finder.py | 21 def find_spec(self, fullname): member in FinderTests 26 return importer.find_spec(fullname) 29 self.assertTrue(self.find_spec(util.EXTENSIONS.name)) 41 self.assertIsNone(self.find_spec('asdfjkl;'))
|
H A D | test_case_sensitivity.py | 15 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/import_/ |
H A D | test_path.py | 130 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')) 245 return self.machinery.PathFinder.find_spec(*args, **kwargs) 275 self.machinery.PathFinder.find_spec('importli [all...] |
H A D | test___loader__.py | 12 def find_spec(self, fullname, path=None, target=None): member in SpecLoaderMock
|
H A D | test_api.py | 15 def find_spec(cls, fullname, path=None, target=None): member in BadSpecFinderLoader
|
H A D | test_meta_path.py | 29 first.find_spec = lambda self, fullname, path=None, parent=None: None 128 finder_name = 'find_spec'
|
/third_party/python/Lib/idlelib/ |
H A D | mainmenu.py | 11 from importlib.util import find_spec 119 if find_spec('turtledemo'):
|
/third_party/python/Lib/test/test_importlib/ |
H A D | test_util.py | 407 def find_spec(name, path=None, target=None): return name, path, target member in FindSpecTests.FakeMetaFinder 418 found = self.util.find_spec(name) 430 found = self.util.find_spec(name) 440 self.util.find_spec(name) 449 found = self.util.find_spec(name) 462 self.util.find_spec(name) 469 self.util.find_spec(name)) 473 self.assertIsNone(self.util.find_spec('nevergoingtofindthismodule')) 480 spec = self.util.find_spec(fullname) 485 spec_again = self.util.find_spec(fullnam [all...] |
H A D | test_threaded_import.py | 71 """A dummy finder to detect concurrent access to its find_spec() 79 def find_spec(self, name, path=None, target=None): member in Finder 80 # Simulate some thread-unsafe behaviour. If calls to find_spec() 94 def find_spec(self, name, path=None, target=None): member in FlushingFinder 166 finder.find_spec('') 172 flushing_finder.find_spec('')
|
H A D | test_windows.py | 94 spec = self.machinery.WindowsRegistryFinder.find_spec('spam') 108 spec = self.machinery.WindowsRegistryFinder.find_spec(self.test_module) 117 spec = self.machinery.WindowsRegistryFinder.find_spec(self.test_module)
|
H A D | test_api.py | 180 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):
|
H A D | test_abc.py | 359 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
|
H A D | test_lazy.py | 45 def find_spec(self, name, path, target=None): member in TestingImporter
|
/third_party/python/Lib/ |
H A D | pkgutil.py | 30 find_spec = finder.find_spec 37 return find_spec(name) 489 importlib.util.find_spec that converts most failures to ImportError 496 spec = importlib.util.find_spec(fullname) 566 if hasattr(finder, 'find_spec'): 567 spec = finder.find_spec(final_name) 622 spec = importlib.util.find_spec(package)
|
/third_party/python/Lib/test/test_importlib/builtin/ |
H A D | test_finder.py | 13 """Test find_spec() for built-in modules.""" 18 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name) 37 spec = self.machinery.BuiltinImporter.find_spec(name)
|
/third_party/python/Lib/test/test_importlib/frozen/ |
H A D | test_finder.py | 29 return finder.find_spec(name, **kwargs) 173 spec1 = finder.find_spec('__hello__') 175 spec2 = finder.find_spec('__hello_only__')
|
/third_party/python/Lib/importlib/ |
H A D | abc.py | 70 "MetaPathFinder.find_spec() or " 71 "PathEntryFinder.find_spec() instead", 79 # We don't define find_spec() here since that would break 89 finder.find_spec(). If find_spec() exists then backwards-compatible 94 "3.4 in favor of MetaPathFinder.find_spec() and is " 98 if not hasattr(self, 'find_spec'): 100 found = self.find_spec(fullname, path) 116 # We don't define find_spec() here since that would break 131 finder.find_spec() [all...] |
H A D | _bootstrap_external.py | 626 This method is deprecated in favor of finder.find_spec(). 630 "slated for removal in Python 3.12; use find_spec() instead", 886 def find_spec(cls, fullname, path=None, target=None): member in WindowsRegistryFinder 905 This method is deprecated. Use find_spec() instead. 909 "slated for removal in Python 3.12; use find_spec() instead", 911 spec = cls.find_spec(fullname, path) 1448 msg = (f"{_bootstrap._object_name(finder)}.find_spec() not found; " 1453 msg = (f"{_bootstrap._object_name(finder)}.find_spec() not found; " 1475 if hasattr(finder, 'find_spec'): 1476 spec = finder.find_spec(fullnam 1497 def find_spec(cls, fullname, path=None, target=None): global() member in PathFinder 1604 def find_spec(self, fullname, target=None): global() member in FileFinder [all...] |
H A D | _bootstrap.py | 749 def find_spec(cls, fullname, path=None, target=None): member in BuiltinImporter 761 This method is deprecated. Use find_spec() instead. 765 "slated for removal in Python 3.12; use find_spec() instead", 767 spec = cls.find_spec(fullname, path) 921 def find_spec(cls, fullname, path=None, target=None): member in FrozenImporter 954 This method is deprecated. Use find_spec() instead. 958 "slated for removal in Python 3.12; use find_spec() instead", 1045 msg = (f"{_object_name(finder)}.find_spec() not found; " 1072 find_spec = finder.find_spec [all...] |
H A D | util.py | 73 def find_spec(name, package=None): function
|
/third_party/python/Lib/test/ |
H A D | test_zipimport.py | 474 spec = zi.find_spec('spam') 482 spec = zi.find_spec(TESTPACK) 545 spec = zi.find_spec('spam2') 553 self.assertIsNone(zi.find_spec("name_does_not_matter")) 579 spec = zi.find_spec(TESTPACK2) 601 spec = zi2.find_spec(TESTMOD) 748 spec = zipimport.zipimporter(filename).find_spec(TESTMOD) 847 self.assertRaises(TypeError, z.find_spec, None) 856 self.assertIsNone(z.find_spec('abc'))
|
H A D | test_doctest.py | 2730 def find_spec(self, fullname, path, target=None): member in TestImporter
|
/third_party/python/Lib/ctypes/test/ |
H A D | test_values.py | 81 spec = importlib.util.find_spec(modname)
|
/third_party/python/Lib/test/test_importlib/source/ |
H A D | test_case_sensitivity.py | 81 found = finder.find_spec(self.name)
|
H A D | test_finder.py | 185 spec = finder.find_spec(name)
|