mirror of
https://github.com/python/cpython.git
synced 2025-10-28 04:04:44 +00:00
Issue #15767: Use ModuleNotFoundError.
This commit is contained in:
parent
c943265ba5
commit
46f97b85a8
16 changed files with 337 additions and 284 deletions
|
|
@ -428,7 +428,7 @@ def test_dash_m_errors(self):
|
|||
('builtins.x', br'Error while finding module specification.*'
|
||||
br'AttributeError'),
|
||||
('builtins.x.y', br'Error while finding module specification.*'
|
||||
br'ImportError.*No module named.*not a package'),
|
||||
br'ModuleNotFoundError.*No module named.*not a package'),
|
||||
('os.path', br'loader.*cannot handle'),
|
||||
('importlib', br'No module named.*'
|
||||
br'is a package and cannot be directly executed'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue