Issue #9517: Move script_helper to the support package.

Patch by Christie Wilson.
This commit is contained in:
Berker Peksag 2015-05-06 06:33:17 +03:00
parent 025e9ebd0a
commit ce643913a9
45 changed files with 115 additions and 102 deletions

View file

@ -1,5 +1,5 @@
import unittest
from test import script_helper
from test.support import script_helper
from test import support
import subprocess
import sys
@ -394,7 +394,7 @@ class ProcessTestCase(BaseTestCase):
python_dir, python_base = self._split_python_path()
abs_python = os.path.join(python_dir, python_base)
rel_python = os.path.join(os.curdir, python_base)
with script_helper.temp_dir() as wrong_dir:
with support.temp_dir() as wrong_dir:
# Before calling with an absolute path, confirm that using a
# relative path fails.
self.assertRaises(FileNotFoundError, subprocess.Popen,