From a80f4fb0481237e4ca4a9d9a57c52e0181b638f9 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Tue, 14 Dec 2010 15:23:02 +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 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") -- cgit v0.12