Lines Matching refs:script_dir
333 def _make_test_script(self, script_dir, script_basename, source=None): argument
336 return make_script(script_dir, script_basename, source)
352 with temp_dir() as script_dir:
354 script_name = self._make_test_script(script_dir, mod_name)
359 with temp_dir() as script_dir:
361 script_name = self._make_test_script(script_dir, mod_name)
368 with temp_dir() as script_dir:
370 script_name = self._make_test_script(script_dir, mod_name)
371 self._check_script(script_dir, "<run_path>", script_name,
372 script_dir, '')
375 with temp_dir() as script_dir:
377 script_name = self._make_test_script(script_dir, mod_name)
380 self._check_script(script_dir, "<run_path>", compiled_name,
381 script_dir, '')
384 with temp_dir() as script_dir:
386 script_name = self._make_test_script(script_dir, mod_name)
387 msg = "can't find '__main__' module in %r" % script_dir
388 self._check_import_error(script_dir, msg)
391 with temp_dir() as script_dir:
393 script_name = self._make_test_script(script_dir, mod_name)
394 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
398 with temp_dir() as script_dir:
400 script_name = self._make_test_script(script_dir, mod_name)
402 zip_name, fname = make_zip_script(script_dir, 'test_zip', compiled_name)
406 with temp_dir() as script_dir:
408 script_name = self._make_test_script(script_dir, mod_name)
409 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
414 with temp_dir() as script_dir, temp_dir() as dummy_dir:
418 script_name = self._make_test_script(script_dir, mod_name, source)
419 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)