Home
last modified time | relevance | path

Searched refs:__loader__ (Results 1 – 25 of 60) sorted by relevance

123

/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest___loader__.py27 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__)
Dtest_path.py129 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/
Dtest_module.py54 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
Dtest_pkgutil.py428 global __loader__
429 this_loader = __loader__
430 del __loader__
436 __loader__ = this_loader
/external/python/cpython2/Lib/test/
Dtest_importhooks.py72 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
Dtest_importlib.py83 module.__loader__ = self
Dtest_pkgutil.py99 mod.__loader__ = self
/external/python/cpython3/Lib/test/test_importlib/
Dtest_api.py110 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 …]
Dtest_util.py91 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 …]
Dtest_resource.py87 module.__loader__ = object()
91 module.__spec__.loader = module.__loader__
Dtest_lazy.py72 module.__loader__ = spec.loader
87 self.assertEqual(module.__loader__, importer)
Dtest_namespace_pkgs.py207 self.assertNotIn('namespace', str(foo.__loader__).lower())
326 self.assertEqual(foo.__loader__, foo.__spec__.loader)
327 self.assertIsNotNone(foo.__loader__)
Dutil.py221 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')
Dtest_spec.py317 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()
Dtest_abc.py225 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/
Dimp.py174 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/
Dutil.py175 module.__loader__ = self
203 module.__loader__ = self
291 module.__loader__ = self.loader
D__init__.py86 loader = sys.modules[name].__loader__
D_bootstrap.py472 loader = module.__loader__
538 module.__loader__ = loader
643 module.__loader__ = spec.loader
/external/python/cpython3/Doc/library/
Drunpy.rst53 ``__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/
Drunpy.rst44 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
Dlinecache.rst31 ``__loader__`` in *module_globals*, in case the module was imported from a
/external/python/cpython2/Lib/ctypes/test/
D__init__.py49 hasattr(package.__loader__, '_files')):
52 for fnm in package.__loader__._files.iterkeys():
/external/autotest/venv/lucifer/
Dautotest.py151 mod.__loader__ = self
/external/python/cpython3/Lib/test/test_importlib/extension/
Dtest_loader.py50 self.assertIsInstance(module.__loader__,
117 self.assertIsInstance(module.__loader__,

123