Lines Matching refs:script_dir
594 def _make_test_script(self, script_dir, script_basename, argument
598 return make_script(script_dir, script_basename,
651 with temp_dir() as script_dir:
653 script_name = self._make_test_script(script_dir, mod_name)
658 with temp_dir() as script_dir:
660 script_name = self._make_test_script(script_dir, mod_name,
666 with temp_dir() as script_dir:
668 script_name = self._make_test_script(script_dir, mod_name)
675 with temp_dir() as script_dir:
677 script_name = self._make_test_script(script_dir, mod_name)
678 self._check_script(script_dir, "<run_path>", script_name,
679 script_dir, mod_name=mod_name)
682 with temp_dir() as script_dir:
684 script_name = self._make_test_script(script_dir, mod_name)
689 self._check_script(script_dir, "<run_path>", legacy_pyc,
690 script_dir, mod_name=mod_name)
693 with temp_dir() as script_dir:
695 script_name = self._make_test_script(script_dir, mod_name)
696 msg = "can't find '__main__' module in %r" % script_dir
697 self._check_import_error(script_dir, msg)
700 with temp_dir() as script_dir:
702 script_name = self._make_test_script(script_dir, mod_name)
703 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
708 with temp_dir() as script_dir:
710 script_name = self._make_test_script(script_dir, mod_name)
712 zip_name, fname = make_zip_script(script_dir, 'test_zip',
718 with temp_dir() as script_dir:
720 script_name = self._make_test_script(script_dir, mod_name)
721 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
727 with temp_dir() as script_dir, temp_dir() as dummy_dir:
731 script_name = self._make_test_script(script_dir, mod_name, source)
732 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
737 with temp_dir() as script_dir:
738 filename = os.path.join(script_dir, 'script.py')