Home
last modified time | relevance | path

Searched refs:run_name (Results 1 – 15 of 15) sorted by relevance

/third_party/python/Lib/
Drunpy.py200 run_name=None, alter_sys=False): argument
206 if run_name is None:
207 run_name = mod_name
209 return _run_module_code(code, init_globals, run_name, mod_spec)
212 return _run_code(code, {}, init_globals, run_name, mod_spec)
233 def _get_code_from_file(run_name, fname): argument
245 def run_path(path_name, init_globals=None, run_name=None): argument
255 if run_name is None:
256 run_name = "<run_path>"
257 pkg_name = run_name.rpartition(".")[0]
[all …]
/third_party/benchmark/src/
Dcomplexity.cc190 auto run_name = reports[0].run_name; in ComputeBigO() local
191 run_name.args.clear(); in ComputeBigO()
195 big_o.run_name = run_name; in ComputeBigO()
220 rms.run_name = run_name; in ComputeBigO()
Dstatistics.cc160 data.run_name = reports[0].run_name; in ComputeStats()
Dreporter.cc95 std::string name = run_name.str(); in benchmark_name()
Dbenchmark_runner.cc75 report.run_name = b.name(); in CreateRunReport()
Djson_reporter.cc236 out << indent << FormatKV("run_name", run.run_name.str()) << ",\n"; in PrintRunData()
/third_party/python/Lib/test/
Dtest_runpy.py129 run_name = expected_ns["__name__"]
131 saved_mod = sys.modules.get(run_name, sentinel)
136 self.assertIs(sys.modules.get(run_name, sentinel), saved_mod)
144 self.assertIs(sys.modules.get(run_name, sentinel), saved_mod)
393 def _check_relative_imports(self, depth, run_name=None): argument
401 if run_name is None:
404 expected_name = run_name
409 d1 = run_module(mod_name, run_name=run_name) # Read from source
423 d2 = run_module(mod_name, run_name=run_name) # Read from bytecode
538 run_name = "And now for something completely different"
[all …]
Dtest_cmd_line_script.py273 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
274 self._check_script(zip_name, run_name, zip_name, zip_name, '',
283 zip_name, run_name = make_zip_script(script_dir, 'test_zip', compiled_name)
284 self._check_script(zip_name, run_name, zip_name, zip_name, '',
293 zip_name, run_name = make_zip_script(script_dir, 'test_zip', compiled_name)
294 self._check_script(zip_name, run_name, zip_name, zip_name, '',
303 zip_name, run_name = make_zip_script(script_dir, 'test_zip', compiled_name)
304 self._check_script(zip_name, run_name, zip_name, zip_name, '',
310 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
326 zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script')
[all …]
Dtest_zipimport_support.py85 zip_name, run_name = make_zip_script(d, 'test_zip',
124 zip_name, run_name = make_zip_script(d, 'test_zip',
205 zip_name, run_name = make_zip_script(d, "test_zip",
208 expected = pattern % (run_name, "__main__.Test")
230 zip_name, run_name = make_zip_script(d, "test_zip",
236 self.assertIn(os.path.normcase(run_name.encode('utf-8')), data)
Dtest_multiprocessing_main_handling.py227 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
236 zip_name, run_name = make_zip_script(script_dir, 'test_zip', compiled_name)
250 zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script')
256 … zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script', depth=2)
/third_party/python/Doc/library/
Drunpy.rst30 .. function:: run_module(mod_name, init_globals=None, run_name=None, alter_sys=False)
58 ``__name__`` is set to *run_name* if this optional argument is not
64 ``mod_name + '.__main__``, never *run_name*).
96 .. function:: run_path(file_path, init_globals=None, run_name=None)
127 ``__name__`` is set to *run_name* if this optional argument is not
/third_party/python/Lib/multiprocessing/
Dspawn.py259 run_name="__mp_main__",
288 run_name="__mp_main__")
/third_party/benchmark/test/
Dspec_arg_test.cc26 matched_functions.push_back(report[0].run_name.function_name); in ReportRuns()
/third_party/python/Lib/test/test_tools/
Dtest_fixcid.py90 runpy.run_path(script, run_name="__main__")
/third_party/benchmark/include/benchmark/
Dbenchmark.h1546 BenchmarkName run_name; member