summaryrefslogtreecommitdiff
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-10-13 03:29:54 +0000
committerTim Peters <tim.peters@gmail.com>2004-10-13 03:29:54 +0000
commit248542a4a73a81c50e3f62087051ec4bd3d456ff (patch)
treed14bd444feeac16408141502e1bf930db1eb69c2 /Lib/test/test_subprocess.py
parent24570a7d05a0a657d55d5f57b0d0dbd80afd7699 (diff)
downloadcpython-248542a4a73a81c50e3f62087051ec4bd3d456ff.tar.gz
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.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py7
1 files changed, 5 insertions, 2 deletions
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)