mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Trying to import a submodule from another module and not a package was raising
AttributeError in importlib when it should be an ImportError. Found when running importlib against test_runpy.
This commit is contained in:
parent
82a23fe392
commit
1c1dcbfd5d
4 changed files with 14 additions and 4 deletions
|
@ -8,9 +8,6 @@ this script.
|
|||
XXX FAILING
|
||||
test_import # execution bit, exception name differing, file name differing
|
||||
between code and module (?)
|
||||
test_runpy # Importing sys.imp.eric raises AttributeError instead of
|
||||
ImportError (as does any attempt to import a sub-module
|
||||
from a non-package, e.g. tokenize.menotreal)
|
||||
|
||||
"""
|
||||
import importlib
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue