mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
bpo-37473: Don't import importlib ASAP in tests (GH-14661)
bpo-15386, bpo-37473: test_import, regrtest and libregrtest no longer import importlib as soon as possible, as the first import, "to test bpo-15386". It is tested by test_import.test_there_can_be_only_one(). Sort test_import imports.
This commit is contained in:
parent
1c5e68e714
commit
8b7db5a111
3 changed files with 7 additions and 15 deletions
|
|
@ -6,9 +6,6 @@ Script to run Python regression tests.
|
|||
Run this script with -h or --help for documentation.
|
||||
"""
|
||||
|
||||
# We import importlib *ASAP* in order to test #15386
|
||||
import importlib
|
||||
|
||||
import os
|
||||
import sys
|
||||
from test.libregrtest import main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue