mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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 @@ class CmdLineTest(unittest.TestCase):
|
|||
('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