Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(158778)

Unified Diff: Lib/test/test_cmd_line.py

Issue 18338: python --version should send output to STDOUT
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Modules/main.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_cmd_line.py Tue Jul 09 19:16:32 2013 +0200
+++ b/Lib/test/test_cmd_line.py Tue Jul 09 18:19:08 2013 -0500
@@ -42,7 +42,8 @@
def test_version(self):
version = ('Python %d.%d' % sys.version_info[:2]).encode("ascii")
rc, out, err = assert_python_ok('-V')
- self.assertTrue(err.startswith(version))
+ self.assertFalse(err.startswith(version))
+ self.assertTrue(out.startswith(version))
def test_verbose(self):
# -v causes imports to write to stderr. If the write to
« no previous file with comments | « no previous file | Modules/main.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+