Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14236)

Unified Diff: Lib/test/test_cmd_line_script.py

Issue 14285: Traceback wrong on ImportError while executing a package
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/runpy.py ('k') | Lib/test/test_runpy.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_cmd_line_script.py Thu Dec 03 22:27:31 2015 +0200
+++ b/Lib/test/test_cmd_line_script.py Sun Dec 06 23:23:35 2015 +0000
@@ -427,12 +427,12 @@
tests = (
('builtins', br'No code object available'),
('builtins.x', br'Error while finding spec.*AttributeError'),
- ('builtins.x.y', br'Error while finding spec.*'
- br'ImportError.*No module named.*not a package'),
+ ('builtins.x.y', br'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'),
('importlib.nonexistant', br'No module named'),
+ ('.unittest', br'Relative module names not supported'),
)
for name, regex in tests:
with self.subTest(name):
« no previous file with comments | « Lib/runpy.py ('k') | Lib/test/test_runpy.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+