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

@ -4,8 +4,9 @@ import sys
import tracemalloc
import unittest
from unittest.mock import patch
from test.script_helper import assert_python_ok, assert_python_failure
from test import script_helper, support
from test.support.script_helper import (assert_python_ok, assert_python_failure,
interpreter_requires_environment)
from test import support
try:
import threading
except ImportError:
@ -751,7 +752,7 @@ class TestCommandLine(unittest.TestCase):
stdout = stdout.rstrip()
self.assertEqual(stdout, b'False')
@unittest.skipIf(script_helper.interpreter_requires_environment(),
@unittest.skipIf(interpreter_requires_environment(),
'Cannot run -E tests when PYTHON env vars are required.')
def test_env_var_ignored_with_E(self):
"""PYTHON* environment variables must be ignored when -E is present."""