mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21314)
This commit is contained in:
parent
9ce8132e1f
commit
883bc63833
19 changed files with 225 additions and 194 deletions
|
|
@ -17,6 +17,7 @@ import importlib.machinery
|
|||
import importlib.util
|
||||
from test import support
|
||||
from test.support import MISSING_C_DOCSTRINGS
|
||||
from test.support import import_helper
|
||||
from test.support import threading_helper
|
||||
from test.support.script_helper import assert_python_failure, assert_python_ok
|
||||
try:
|
||||
|
|
@ -25,7 +26,7 @@ except ImportError:
|
|||
_posixsubprocess = None
|
||||
|
||||
# Skip this test if the _testcapi module isn't available.
|
||||
_testcapi = support.import_module('_testcapi')
|
||||
_testcapi = import_helper.import_module('_testcapi')
|
||||
|
||||
import _testinternalcapi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue