mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap
This commit is contained in:
parent
818b1186f9
commit
be7e49fd82
5 changed files with 27 additions and 5 deletions
|
@ -165,6 +165,9 @@ example, to run all the tests except for the gui tests, give the
|
|||
option '-uall,-gui'.
|
||||
"""
|
||||
|
||||
# We import importlib *ASAP* in order to test #15386
|
||||
import importlib
|
||||
|
||||
import builtins
|
||||
import faulthandler
|
||||
import getopt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue