From: Benjamin Peterson Date: Wed, 25 Nov 2009 18:38:11 +0000 (+0000) Subject: fix test checking for error message X-Git-Tag: v3.2a1~2123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e360795dd4b4ec814f6a2b3bdfd1cb37e6ec9cb0;p=thirdparty%2FPython%2Fcpython.git fix test checking for error message --- diff --git a/Lib/runpy.py b/Lib/runpy.py index 9fe431a00ea3..46e138e72479 100644 --- a/Lib/runpy.py +++ b/Lib/runpy.py @@ -147,7 +147,7 @@ def _run_module_as_main(mod_name, alter_argv=True): else: # For directories/zipfiles, let the user # 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) sys.exit(msg) pkg_name = mod_name.rpartition('.')[0]