• Home
  • Raw
  • Download

Lines Matching refs:script_name

603     def _check_script(self, script_name, expected_name, expected_file,  argument
608 return run_path(script_name, init_globals)
637 return run_path(script_name, init_globals, run_name)
648 def _check_import_error(self, script_name, msg): argument
650 self.assertRaisesRegex(ImportError, msg, run_path, script_name)
655 script_name = self._make_test_script(script_dir, mod_name)
656 self._check_script(script_name, "<run_path>", script_name,
657 script_name, expect_spec=False)
662 script_name = pathlib.Path(self._make_test_script(script_dir,
664 self._check_script(script_name, "<run_path>", script_name,
665 script_name, expect_spec=False)
670 script_name = self._make_test_script(script_dir, mod_name,
672 self._check_script(script_name, "<run_path>", script_name,
673 script_name, expect_spec=False)
678 script_name = self._make_test_script(script_dir, mod_name)
679 compiled_name = py_compile.compile(script_name, doraise=True)
680 os.remove(script_name)
687 script_name = self._make_test_script(script_dir, mod_name)
688 self._check_script(script_dir, "<run_path>", script_name,
694 script_name = self._make_test_script(script_dir, mod_name)
695 compiled_name = py_compile.compile(script_name, doraise=True)
696 os.remove(script_name)
698 legacy_pyc = make_legacy_pyc(script_name)
705 script_name = self._make_test_script(script_dir, mod_name)
712 script_name = self._make_test_script(script_dir, mod_name)
713 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
720 script_name = self._make_test_script(script_dir, mod_name)
721 compiled_name = py_compile.compile(script_name, doraise=True)
730 script_name = self._make_test_script(script_dir, mod_name)
731 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
741 script_name = self._make_test_script(script_dir, mod_name, source)
742 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)