From: Gregory P. Smith Date: Tue, 14 Dec 2010 15:23:02 +0000 (+0000) Subject: Fix "BytesWarning: str() on a bytes instance" X-Git-Tag: v3.2b2~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a80f4fb0481237e4ca4a9d9a57c52e0181b638f9;p=thirdparty%2FPython%2Fcpython.git Fix "BytesWarning: str() on a bytes instance" --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 1e97bac0189d..8ec3d719dc9a 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")