diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-12-20 17:28:31 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-12-20 17:28:31 (GMT) |
commit | 445448ca2d082c598c950f7baa6fbf70addd2a71 (patch) | |
tree | 9bd0a56d330ac087862d5d3f7dcca307eff5a1f1 /Lib/runpy.py | |
parent | 1554b18b5aad4547574f680761da047d356b30b4 (diff) | |
download | cpython-445448ca2d082c598c950f7baa6fbf70addd2a71.zip cpython-445448ca2d082c598c950f7baa6fbf70addd2a71.tar.gz cpython-445448ca2d082c598c950f7baa6fbf70addd2a71.tar.bz2 |
Merged revisions 76934-76935 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76934 | r.david.murray | 2009-12-20 11:24:46 -0500 (Sun, 20 Dec 2009) | 2 lines
Fix comment typo.
........
r76935 | r.david.murray | 2009-12-20 11:46:06 -0500 (Sun, 20 Dec 2009) | 10 lines
Issue #7376: When called with no arguments doctest was running a
self-test. Because of a change to the way tracebacks are printed,
this self-test was failing. The test is run (and passes) during normal
regression testing. So instead of running the failing self-test this
patch makes doctest emit a usage message. This is better behavior anyway
since passing in arguments is the real reason to run doctest as a command.
Bug discovery and initial patch by Florent Xicluna.
........
Diffstat (limited to 'Lib/runpy.py')
-rw-r--r-- | Lib/runpy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/runpy.py b/Lib/runpy.py index 46e138e..6e94d6b 100644 --- a/Lib/runpy.py +++ b/Lib/runpy.py @@ -125,7 +125,7 @@ def _run_module_as_main(mod_name, alter_argv=True): Note that the executed module will have full access to the __main__ namespace. If this is not desirable, the run_module() - function sbould be used to run the module code in a fresh namespace. + function should be used to run the module code in a fresh namespace. At the very least, these variables in __main__ will be overwritten: __name__ |