mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue