mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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
1 changed files with 5 additions and 2 deletions
|
@ -56,8 +56,11 @@ class ProcessTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def test_stdout_none(self):
|
def test_stdout_none(self):
|
||||||
# .stdout is None when not redirected
|
# .stdout is None when not redirected
|
||||||
p = subprocess.Popen([sys.executable, "-c", 'print "banana"'],
|
p = subprocess.Popen([sys.executable, "-c",
|
||||||
stdin=subprocess.PIPE, stderr=subprocess.PIPE)
|
'print " this bit of output is from a '
|
||||||
|
'test of stdout in a different '
|
||||||
|
'process ..."'],
|
||||||
|
stdin=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
p.wait()
|
p.wait()
|
||||||
self.assertEqual(p.stdout, None)
|
self.assertEqual(p.stdout, None)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue