]> 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:25:20 +0000 (15:25 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 14 Dec 2010 15:25:20 +0000 (15:25 +0000)
Lib/test/test_subprocess.py

index adf00a50a0784e01a22ad89311bebc542cd7a99c..a633af5058071157bfbef56227d94454dcf64dd8 100644 (file)
@@ -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'))
 
 
     #