]> granicus.if.org Git - python/commitdiff
test_stdout_none(): Don't print "banana" to the screen in the middle
authorTim Peters <tim.peters@gmail.com>
Wed, 13 Oct 2004 03:29:54 +0000 (03:29 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 13 Oct 2004 03:29:54 +0000 (03:29 +0000)
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.

Lib/test/test_subprocess.py

index a11183be3945cbddffaee390bbeb9cacb2158f8e..6f498b822f27c6d3b09edef1b46175542f076ebb 100644 (file)
@@ -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)