diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-07-20 13:40:09 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-07-20 13:40:09 (GMT) |
commit | be7e49fd820318509cd8b4dbde479c552f74ef62 (patch) | |
tree | 856c3693092233495f1ecadbd90c0b7e085cc70d /Lib/test/regrtest.py | |
parent | 818b1186f9459646a4ad7015ed45ce9dfea0fa55 (diff) | |
download | cpython-be7e49fd820318509cd8b4dbde479c552f74ef62.zip cpython-be7e49fd820318509cd8b4dbde479c552f74ef62.tar.gz cpython-be7e49fd820318509cd8b4dbde479c552f74ef62.tar.bz2 |
Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 28655f0..3c8359a 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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 |