Home
last modified time | relevance | path

Searched refs:cache_from_source (Results 1 – 25 of 30) sorted by relevance

12

/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py346 self.assertEqual(self.util.cache_from_source(path, optimization=''),
353 self.util.cache_from_source('whatever.py')
360 self.assertEqual(self.util.cache_from_source(path, optimization=''),
369 self.assertEqual(self.util.cache_from_source(path, False),
370 self.util.cache_from_source(path, optimization=1))
371 self.assertEqual(self.util.cache_from_source(path, True),
372 self.util.cache_from_source(path, optimization=''))
376 self.util.cache_from_source(path, False)
378 self.util.cache_from_source(path, True)
383 self.assertEqual(self.util.cache_from_source(path, optimization=''),
[all …]
Dtest_pkg_import.py9 from importlib.util import cache_from_source
42 compiled_path = cache_from_source(self.module_path)
Dtest_api.py234 cached = self.util.cache_from_source(path)
255 cached = self.util.cache_from_source(init_path)
286 cached = self.util.cache_from_source(bad_path)
315 cached = self.util.cache_from_source(init_path)
Dtest_spec.py55 self.cached = self.util.cache_from_source(self.path)
188 expected = self.util.cache_from_source(self.path)
227 self.cached = self.util.cache_from_source(self.path)
367 self.cached = self.util.cache_from_source(self.path)
Dtest_abc.py628 self.bytecode_path = self.util.cache_from_source(self.path)
674 self.cached = self.util.cache_from_source(self.path)
811 bytecode_path = self.util.cache_from_source(self.path)
/external/python/cpython3/Tools/importbench/
Dimportbench.py9 from importlib.util import cache_from_source
69 assert not os.path.exists(cache_from_source(mapping[name]))
84 bytecode_path = cache_from_source(module.__file__)
112 os.unlink(cache_from_source(mapping[name]))
114 assert not os.path.exists(cache_from_source(mapping[name]))
125 os.unlink(cache_from_source(module.__file__))
145 assert os.path.exists(cache_from_source(mapping[name]))
/external/python/cpython3/Lib/test/
Dtest_compileall.py40 return importlib.util.cache_from_source(script, optimization=opt)
61 self.bc_path = importlib.util.cache_from_source(self.source_path)
65 self.bc_path2 = importlib.util.cache_from_source(self.source_path2)
218 cached = importlib.util.cache_from_source(self.source_path,
221 cached2 = importlib.util.cache_from_source(self.source_path2,
224 cached3 = importlib.util.cache_from_source(self.source_path3,
291 pyc_filename = importlib.util.cache_from_source(source)
320 modcode = importlib.util.cache_from_source(mod)
351 bc = importlib.util.cache_from_source(script)
370 bc = importlib.util.cache_from_source(script)
[all …]
Dtest_py_compile.py59 self.cache_path = importlib.util.cache_from_source(self.source_path)
141 importlib.util.cache_from_source(bad_coding)))
162 cache_path = importlib.util.cache_from_source(weird_path)
230 self.cache_path = importlib.util.cache_from_source(self.source_path,
Dtest_runpy.py342 "__cached__": importlib.util.cache_from_source(mod_fname),
547 "__cached__": importlib.util.cache_from_source(mod_fname),
Dtest_reprlib.py674 len(importlib.util.cache_from_source("x.py")) - len("x.py"))
Dtest_zipimport.py64 pyc_file = importlib.util.cache_from_source(TESTMOD + '.py')
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_file_loader.py185 self.assertEqual(self.util.cache_from_source(file_path),
189 pycache = os.path.dirname(self.util.cache_from_source(file_path))
199 compiled = self.util.cache_from_source(source)
243 pyc = self.util.cache_from_source(source)
275 pyc = self.util.cache_from_source(source)
299 pyc = self.util.cache_from_source(source)
330 pyc = self.util.cache_from_source(source)
391 bytecode_path = self.util.cache_from_source(mapping[name])
639 bytecode_path = self.util.cache_from_source(mapping['_temp'])
657 bytecode_path = self.util.cache_from_source(mapping['_temp'])
/external/python/cpython3/Lib/
Dpy_compile.py129 cfile = importlib.util.cache_from_source(file,
132 cfile = importlib.util.cache_from_source(file)
Dcompileall.py219 cfile = (importlib.util.cache_from_source(
223 cfile = importlib.util.cache_from_source(fullname)
/external/python/cpython3/Lib/test/support/
Dimport_helper.py50 unlink(importlib.util.cache_from_source(source, optimization=opt))
60 pyc_file = importlib.util.cache_from_source(source)
/external/ply/ply/test/
Dtestlex.py20 from importlib.util import cache_from_source
23 cache_from_source = None variable
32 fullpath = cache_from_source(filename, optimization=optimization)
34 fullpath = cache_from_source(filename, ext=='.pyc')
Dtestyacc.py27 fullpath = importlib.util.cache_from_source(filename, ext=='.pyc')
/external/python/cpython3/Lib/test/test_import/
D__init__.py674 compiled = importlib.util.cache_from_source(source)
1182 cached_path = importlib.util.cache_from_source(path)
1201 cached_path = importlib.util.cache_from_source(path)
1217 cached_path = importlib.util.cache_from_source(path)
1254 os.rename(importlib.util.cache_from_source(path), bytecode_only)
1276 compiled_name = importlib.util.cache_from_source(file_name)
1545 pyc_path = importlib.util.cache_from_source(self.source)
1562 pyc_path = importlib.util.cache_from_source(self.source)
1572 pyc_file = importlib.util.cache_from_source(self.source)
1601 pyc_file = importlib.util.cache_from_source(TESTFN + '.py')
[all …]
/external/python/cpython3/Lib/importlib/
Dutil.py9 from ._bootstrap_external import cache_from_source
D_bootstrap_external.py513 def cache_from_source(path, debug_override=None, *, optimization=None): function
645 return cache_from_source(filename)
1107 bytecode_path = cache_from_source(source_path)
/external/python/cpython3/Doc/deprecations/
Dpending-removal-in-future.rst61 * :func:`~importlib.util.cache_from_source` *debug_override* parameter is
/external/python/cpython3/Lib/zipfile/
D__init__.py2211 pycache_opt0 = importlib.util.cache_from_source(file_py, optimization='')
2212 pycache_opt1 = importlib.util.cache_from_source(file_py, optimization=1)
2213 pycache_opt2 = importlib.util.cache_from_source(file_py, optimization=2)
/external/python/cpython3/Lib/test/test_pydoc/
Dtest_pydoc.py894 cached_path = importlib.util.cache_from_source(init_path)
/external/python/cpython3/Doc/whatsnew/
D3.12.rst1468 ``imp.cache_from_source()`` :func:`importlib.util.cache_from_source`
D3.5.rst671 :func:`importlib.util.cache_from_source` has an updated API to help with
2471 :func:`importlib.util.cache_from_source` has gained an *optimization*

12