summaryrefslogtreecommitdiff
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-07-14 19:31:12 +0200
committerGitHub <noreply@github.com>2019-07-14 19:31:12 +0200
commit8b7db5a1114e2113a756bdf8877fbe366055c69a (patch)
tree99c1e0d6845c172d4ec499afceec6a5e0a20291d /Lib/test/regrtest.py
parent1c5e68e7145f0825f9b952389141edb9436eb43d (diff)
downloadcpython-git-8b7db5a1114e2113a756bdf8877fbe366055c69a.tar.gz
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.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 21b0edfd07..0ffb3ed454 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -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