mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Raise TypeError if the name given to importlib.__import__() lacks an rpartition
attribute. Was throwing AttributeError before. Discovered when running test_builtin against importlib. This exception change is specific to importlib.__import__() and does not apply to import_module() as it is being done for compatibility reasons only.
This commit is contained in:
parent
44b28a9f32
commit
6afbaef2fd
4 changed files with 28 additions and 1 deletions
|
@ -6,7 +6,6 @@ Otherwise all command-line options valid for test.regrtest are also valid for
|
|||
this script.
|
||||
|
||||
XXX FAILING
|
||||
test_builtin # Wanting a TypeError for an integer name
|
||||
test_import # execution bit, exception name differing, file name differing
|
||||
between code and module (?)
|
||||
test_importhooks # package not set in _gcd_import() but level > 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue