• Home
  • Raw
  • Download

Lines Matching refs:script_dir

596     def _make_test_script(self, script_dir, script_basename,  argument
600 return make_script(script_dir, script_basename,
653 with temp_dir() as script_dir:
655 script_name = self._make_test_script(script_dir, mod_name)
660 with temp_dir() as script_dir:
662 script_name = pathlib.Path(self._make_test_script(script_dir,
668 with temp_dir() as script_dir:
670 script_name = self._make_test_script(script_dir, mod_name,
676 with temp_dir() as script_dir:
678 script_name = self._make_test_script(script_dir, mod_name)
685 with temp_dir() as script_dir:
687 script_name = self._make_test_script(script_dir, mod_name)
688 self._check_script(script_dir, "<run_path>", script_name,
689 script_dir, mod_name=mod_name)
692 with temp_dir() as script_dir:
694 script_name = self._make_test_script(script_dir, mod_name)
699 self._check_script(script_dir, "<run_path>", legacy_pyc,
700 script_dir, mod_name=mod_name)
703 with temp_dir() as script_dir:
705 script_name = self._make_test_script(script_dir, mod_name)
706 msg = "can't find '__main__' module in %r" % script_dir
707 self._check_import_error(script_dir, msg)
710 with temp_dir() as script_dir:
712 script_name = self._make_test_script(script_dir, mod_name)
713 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
718 with temp_dir() as script_dir:
720 script_name = self._make_test_script(script_dir, mod_name)
722 zip_name, fname = make_zip_script(script_dir, 'test_zip',
728 with temp_dir() as script_dir:
730 script_name = self._make_test_script(script_dir, mod_name)
731 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
737 with temp_dir() as script_dir, temp_dir() as dummy_dir:
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)
747 with temp_dir() as script_dir:
748 filename = os.path.join(script_dir, 'script.py')