Fix "BytesWarning: str() on a bytes instance"

This commit is contained in:
Gregory P. Smith 2010-12-14 15:23:02 +00:00
parent e85db2bbb8
commit a80f4fb048

View 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")