[Python-checkins] r87236 - python/branches/py3k/Lib/test/test_subprocess.py

gregory.p.smith python-checkins at python.org
Tue Dec 14 16:23:02 CET 2010


Author: gregory.p.smith
Date: Tue Dec 14 16:23:02 2010
New Revision: 87236

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


Modified:
   python/branches/py3k/Lib/test/test_subprocess.py

Modified: python/branches/py3k/Lib/test/test_subprocess.py
==============================================================================
--- python/branches/py3k/Lib/test/test_subprocess.py	(original)
+++ python/branches/py3k/Lib/test/test_subprocess.py	Tue Dec 14 16:23:02 2010
@@ -1081,7 +1081,8 @@
                              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")


More information about the Python-checkins mailing list