Home
last modified time | relevance | path

Searched refs:BUILTINS (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/builtin/
Dtest_loader.py10 @unittest.skipIf(util.BUILTINS.good_name is None, 'no reasonable builtin module')
31 with util.uncache(util.BUILTINS.good_name):
32 module = self.load_module(util.BUILTINS.good_name)
43 with util.uncache(util.BUILTINS.good_name):
44 module1 = self.load_module(util.BUILTINS.good_name)
45 module2 = self.load_module(util.BUILTINS.good_name)
73 @unittest.skipIf(util.BUILTINS.good_name is None, 'no reasonable builtin module')
80 result = self.machinery.BuiltinImporter.get_code(util.BUILTINS.good_name)
85 result = self.machinery.BuiltinImporter.get_source(util.BUILTINS.good_name)
90 result = self.machinery.BuiltinImporter.is_package(util.BUILTINS.good_name)
[all …]
Dtest_finder.py10 @unittest.skipIf(util.BUILTINS.good_name is None, 'no reasonable builtin module')
17 with util.uncache(util.BUILTINS.good_name):
18 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name)
42 with util.uncache(util.BUILTINS.good_name):
43 spec = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name,
53 @unittest.skipIf(util.BUILTINS.good_name is None, 'no reasonable builtin module')
60 with util.uncache(util.BUILTINS.good_name):
61 found = self.machinery.BuiltinImporter.find_module(util.BUILTINS.good_name)
78 with util.uncache(util.BUILTINS.good_name):
79 loader = self.machinery.BuiltinImporter.find_module(util.BUILTINS.good_name,
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py24 BUILTINS = types.SimpleNamespace() namespace
25 BUILTINS.good_name = None
26 BUILTINS.bad_name = None
28 BUILTINS.good_name = 'errno'
30 BUILTINS.bad_name = 'importlib'