]> granicus.if.org Git - python/commit
bpo-37473: Don't import importlib ASAP in tests (GH-14661)
authorVictor Stinner <vstinner@redhat.com>
Sun, 14 Jul 2019 17:31:12 +0000 (19:31 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Jul 2019 17:31:12 +0000 (19:31 +0200)
commit8b7db5a1114e2113a756bdf8877fbe366055c69a
tree99c1e0d6845c172d4ec499afceec6a5e0a20291d
parent1c5e68e7145f0825f9b952389141edb9436eb43d
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.
Lib/test/libregrtest/__init__.py
Lib/test/regrtest.py
Lib/test/test_import/__init__.py