summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-11-25 18:38:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-11-25 18:38:11 (GMT)
commite360795dd4b4ec814f6a2b3bdfd1cb37e6ec9cb0 (patch)
treecc6c722de8be66fdf022f98661ca823151b44fc3
parent2021100d6daec7ed40f9a47c97184d3fe708ed8d (diff)
downloadcpython-e360795dd4b4ec814f6a2b3bdfd1cb37e6ec9cb0.zip
cpython-e360795dd4b4ec814f6a2b3bdfd1cb37e6ec9cb0.tar.gz
cpython-e360795dd4b4ec814f6a2b3bdfd1cb37e6ec9cb0.tar.bz2
fix test checking for error message
-rw-r--r--Lib/runpy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/runpy.py b/Lib/runpy.py
index 9fe431a..46e138e 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]