]> granicus.if.org Git - python/commitdiff
Fix "BytesWarning: str() on a bytes instance"
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 14 Dec 2010 15:23:02 +0000 (15:23 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 14 Dec 2010 15:23:02 +0000 (15:23 +0000)
Lib/test/test_subprocess.py

index 1e97bac0189d0a4750ab5de50829d78ea2532209..8ec3d719dc9aa1ecc54d2f1c79f413f6f443b153 100644 (file)
@@ -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")