mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #9517: Move script_helper to the support package.
Patch by Christie Wilson.
This commit is contained in:
parent
025e9ebd0a
commit
ce643913a9
45 changed files with 115 additions and 102 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue