summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-07-01 19:28:43 (GMT)
committerGeorg Brandl <georg@python.org>2008-07-01 19:28:43 (GMT)
commit1abcbf8e193019b16f5a7e71c176667fb679baab (patch)
tree9c475f226c72ae725f4cbfdc0613c50fd5f3b5bc /Lib/test/test_subprocess.py
parentc22ed14ddd640f206e1e334fcb4ed4ab4de0951e (diff)
downloadcpython-1abcbf8e193019b16f5a7e71c176667fb679baab.zip
cpython-1abcbf8e193019b16f5a7e71c176667fb679baab.tar.gz
cpython-1abcbf8e193019b16f5a7e71c176667fb679baab.tar.bz2
#2683: Popen.communicate() argument must be bytes.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 71ae0db..fe916c2 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -302,7 +302,7 @@ class ProcessTestCase(unittest.TestCase):
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
- (stdout, stderr) = p.communicate("banana")
+ (stdout, stderr) = p.communicate(b"banana")
self.assertEqual(stdout, b"banana")
self.assertEqual(remove_stderr_debug_decorations(stderr),
b"pineapple")
@@ -420,7 +420,7 @@ class ProcessTestCase(unittest.TestCase):
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
- data = p.communicate("lime")[0]
+ data = p.communicate(b"lime")[0]
self.assertEqual(data, b"lime")