From 773d7dffb1fa20fa1a434e326d66515d3bfd43fb Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Tue, 14 Dec 2010 15:25:20 +0000 Subject: fix "BytesWarning: str() on a bytes instance" --- Lib/test/test_subprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')) # -- cgit v0.12