commit | e360795dd4b4ec814f6a2b3bdfd1cb37e6ec9cb0 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed Nov 25 18:38:11 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Wed Nov 25 18:38:11 2009 +0000 |
tree | cc6c722de8be66fdf022f98661ca823151b44fc3 | |
parent | 2021100d6daec7ed40f9a47c97184d3fe708ed8d [diff] [blame] |
fix test checking for error message
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 @@ 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]