summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2010-12-14 15:25:20 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2010-12-14 15:25:20 (GMT)
commit773d7dffb1fa20fa1a434e326d66515d3bfd43fb (patch)
tree2a26ce656721b29c6f32743b18a4d0cc3a3db4ba /Lib
parentb740e76af01bdd34e53d3c03b812e452f5d9a4e8 (diff)
downloadcpython-773d7dffb1fa20fa1a434e326d66515d3bfd43fb.zip
cpython-773d7dffb1fa20fa1a434e326d66515d3bfd43fb.tar.gz
cpython-773d7dffb1fa20fa1a434e326d66515d3bfd43fb.tar.bz2
fix "BytesWarning: str() on a bytes instance"
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index adf00a5..a633af5 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -801,7 +801,8 @@ class ProcessTestCase(BaseTestCase):
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
self.assertEqual(0, p.returncode, "sigchild_ignore.py exited"
- " non-zero with this error:\n%s" % stderr)
+ " non-zero with this error:\n%s" %
+ stderr.decode('utf8'))
#