summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2010-12-14 15:23:02 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2010-12-14 15:23:02 (GMT)
commita80f4fb0481237e4ca4a9d9a57c52e0181b638f9 (patch)
tree433d777b58125ee56ffd762e6af598afe6642908 /Lib/test
parente85db2bbb84ba90c03022860f76ca3cdcdf199c6 (diff)
downloadcpython-a80f4fb0481237e4ca4a9d9a57c52e0181b638f9.zip
cpython-a80f4fb0481237e4ca4a9d9a57c52e0181b638f9.tar.gz
cpython-a80f4fb0481237e4ca4a9d9a57c52e0181b638f9.tar.bz2
Fix "BytesWarning: str() on a bytes instance"
Diffstat (limited to 'Lib/test')
-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 1e97bac..8ec3d71 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1081,7 +1081,8 @@ class POSIXProcessTestCase(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'))
@unittest.skipUnless(mswindows, "Windows specific tests")