From: Gregory P. Smith Date: Tue, 14 Dec 2010 15:25:20 +0000 (+0000) Subject: fix "BytesWarning: str() on a bytes instance" X-Git-Tag: v3.2.1b1~347^2~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=773d7dffb1fa20fa1a434e326d66515d3bfd43fb;p=python fix "BytesWarning: str() on a bytes instance" --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index adf00a50a0..a633af5058 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')) #