From: Tim Peters Date: Wed, 13 Oct 2004 03:29:54 +0000 (+0000) Subject: test_stdout_none(): Don't print "banana" to the screen in the middle X-Git-Tag: v2.4b1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4052fe5a9bb5de0e142f138c00a263d2fe44f552;p=python test_stdout_none(): Don't print "banana" to the screen in the middle of the test. It's testing stdout in a different process, so it has to print something, but I didn't find "banana" to be self-explanatory. --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index a11183be39..6f498b822f 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -56,8 +56,11 @@ class ProcessTestCase(unittest.TestCase): def test_stdout_none(self): # .stdout is None when not redirected - p = subprocess.Popen([sys.executable, "-c", 'print "banana"'], - stdin=subprocess.PIPE, stderr=subprocess.PIPE) + p = subprocess.Popen([sys.executable, "-c", + 'print " this bit of output is from a ' + 'test of stdout in a different ' + 'process ..."'], + stdin=subprocess.PIPE, stderr=subprocess.PIPE) p.wait() self.assertEqual(p.stdout, None)