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.
This commit is contained in:
parent
876c43245e
commit
4052fe5a9b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue