Commit d092426a authored by Benjamin Peterson's avatar Benjamin Peterson

fix test checking for error message

parent 83244fc1
...@@ -147,7 +147,7 @@ def _run_module_as_main(mod_name, alter_argv=True): ...@@ -147,7 +147,7 @@ def _run_module_as_main(mod_name, alter_argv=True):
else: else:
# For directories/zipfiles, let the user # For directories/zipfiles, let the user
# know what the code was looking for # know what the code was looking for
info = "can't find '__main__.py' in %r" % sys.argv[0] info = "can't find '__main__' module in %r" % sys.argv[0]
msg = "%s: %s" % (sys.executable, info) msg = "%s: %s" % (sys.executable, info)
sys.exit(msg) sys.exit(msg)
pkg_name = mod_name.rpartition('.')[0] pkg_name = mod_name.rpartition('.')[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment