[Python-checkins] python/dist/src/Lib/test test_subprocess.py, 1.6,
1.7
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Wed Oct 13 05:29:57 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18553/Lib/test
Modified Files:
test_subprocess.py
Log Message:
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.
Index: test_subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_subprocess.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- test_subprocess.py 13 Oct 2004 03:21:35 -0000 1.6
+++ test_subprocess.py 13 Oct 2004 03:29:54 -0000 1.7
@@ -56,8 +56,11 @@
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)
More information about the Python-checkins
mailing list