Searched refs:__loader__ (Results 1 – 25 of 60) sorted by relevance
123
/external/python/cpython3/Lib/test/test_importlib/import_/ |
D | test___loader__.py | 27 self.assertEqual(loader, module.__loader__) 50 del module.__loader__ 57 self.assertEqual(loader, module.__loader__) 61 module.__loader__ = None 66 self.assertEqual(loader, module.__loader__)
|
D | test_path.py | 129 success_finder.to_return = __loader__ 132 self.assertEqual(spec.loader, __loader__) 145 success_finder.loader = __loader__ 148 self.assertEqual(spec.loader, __loader__) 160 success_finder.spec = self.machinery.ModuleSpec('whatever', __loader__)
|
/external/python/cpython3/Lib/test/ |
D | test_module.py | 54 self.assertIs(foo.__loader__, None) 202 assert m.__loader__ is None 209 m.__loader__ = BareLoader 221 m.__loader__ = FullLoader 229 m.__loader__ = BareLoader 237 m.__loader__ = FullLoader 245 m.__loader__ = BareLoader 253 m.__loader__ = FullLoader
|
D | test_pkgutil.py | 428 global __loader__ 429 this_loader = __loader__ 430 del __loader__ 436 __loader__ = this_loader
|
/external/python/cpython2/Lib/test/ |
D | test_importhooks.py | 72 mod.__loader__ = self 135 mod.__loader__ = self # for introspection 173 self.assertEqual(hooktestmodule.__loader__, importer) 174 self.assertEqual(hooktestpackage.__loader__, importer) 175 self.assertEqual(hooktestpackage.sub.__loader__, importer) 176 self.assertEqual(hooktestpackage.sub.subber.__loader__, importer) 248 m.__loader__ # to make sure we actually handled the import
|
D | test_importlib.py | 83 module.__loader__ = self
|
D | test_pkgutil.py | 99 mod.__loader__ = self
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_api.py | 110 module.__loader__ = loader 122 module.__loader__ = None 136 del module.__loader__ 226 loader = types.__loader__ 227 del types.__loader__ 232 self.assertEqual(reloaded.__loader__.path, loader.path) 237 types.__loader__ = None 241 self.assertIsNot(reloaded.__loader__, None) 426 self.assertNotEqual(source_init.__loader__.__class__.__name__, 440 self.assertIsNot(module.__loader__, None) [all …]
|
D | test_util.py | 91 self.assertIs(module.__loader__, loader) 172 module.__loader__ = 42 179 self.assertEqual(module.__loader__, loader) 236 self.assertIs(module.__loader__, loader) 244 self.assertIs(module.__loader__, loader) 334 del loader.module.__loader__ 339 self.assertEqual(loader, loader.load_module('blah').__loader__) 344 loader.module.__loader__ = None 347 self.assertEqual(loader, loader.load_module('blah').__loader__) 352 loader.module.__loader__ = 42 [all …]
|
D | test_resource.py | 87 module.__loader__ = object() 91 module.__spec__.loader = module.__loader__
|
D | test_lazy.py | 72 module.__loader__ = spec.loader 87 self.assertEqual(module.__loader__, importer)
|
D | test_namespace_pkgs.py | 207 self.assertNotIn('namespace', str(foo.__loader__).lower()) 326 self.assertEqual(foo.__loader__, foo.__spec__.loader) 327 self.assertIsNotNone(foo.__loader__)
|
D | util.py | 221 module.__loader__ = self 444 module.__loader__ = loader 505 self.assertEqual(package.__loader__._path, 'utf-8.file') 513 self.assertEqual(package.__loader__._path, 'utf-8.file')
|
D | test_spec.py | 317 self.assertIs(loaded.__loader__, self.spec.loader) 371 del loaded.__loader__ 377 self.assertIs(loaded.__loader__, self.spec.loader) 416 self.module.__loader__ = Loader() 425 self.module.__loader__ = Loader() 479 self.module.__loader__ = TestLoader()
|
D | test_abc.py | 225 mod.__loader__ = self.ins 453 self.assertEqual(loader, module.__loader__) 466 module.__loader__ = loader 764 self.assertEqual(module.__loader__, self.loader) 777 module.__loader__ = self.loader
|
/external/python/cpython3/Lib/ |
D | imp.py | 174 module.__loader__ = machinery.SourceFileLoader(name, pathname) 175 module.__spec__.loader = module.__loader__ 194 module.__loader__ = SourcelessFileLoader(name, pathname) 195 module.__spec__.loader = module.__loader__
|
/external/python/cpython3/Lib/importlib/ |
D | util.py | 175 module.__loader__ = self 203 module.__loader__ = self 291 module.__loader__ = self.loader
|
D | __init__.py | 86 loader = sys.modules[name].__loader__
|
D | _bootstrap.py | 472 loader = module.__loader__ 538 module.__loader__ = loader 643 module.__loader__ = spec.loader
|
/external/python/cpython3/Doc/library/ |
D | runpy.rst | 53 ``__cached__``, ``__loader__`` and ``__package__`` are set in the globals 66 ``__file__``, ``__cached__``, ``__loader__`` and ``__package__`` are 122 ``__cached__``, ``__loader__`` and ``__package__`` are set in the globals 132 supplied path, and ``__spec__``, ``__cached__``, ``__loader__`` and 138 ``__file__``, ``__cached__``, ``__loader__`` and ``__package__`` will be
|
/external/python/cpython2/Doc/library/ |
D | runpy.rst | 44 The special global variables ``__name__``, ``__file__``, ``__loader__`` 57 ``__loader__`` is set to the :pep:`302` module loader used to retrieve the 109 The special global variables ``__name__``, ``__file__``, ``__loader__`` 121 ``__loader__`` is set to the :pep:`302` module loader used to retrieve the
|
D | linecache.rst | 31 ``__loader__`` in *module_globals*, in case the module was imported from a
|
/external/python/cpython2/Lib/ctypes/test/ |
D | __init__.py | 49 hasattr(package.__loader__, '_files')): 52 for fnm in package.__loader__._files.iterkeys():
|
/external/autotest/venv/lucifer/ |
D | autotest.py | 151 mod.__loader__ = self
|
/external/python/cpython3/Lib/test/test_importlib/extension/ |
D | test_loader.py | 50 self.assertIsInstance(module.__loader__, 117 self.assertIsInstance(module.__loader__,
|
123