diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2010-12-14 15:23:02 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2010-12-14 15:23:02 (GMT) |
commit | a80f4fb0481237e4ca4a9d9a57c52e0181b638f9 (patch) | |
tree | 433d777b58125ee56ffd762e6af598afe6642908 /Lib | |
parent | e85db2bbb84ba90c03022860f76ca3cdcdf199c6 (diff) | |
download | cpython-a80f4fb0481237e4ca4a9d9a57c52e0181b638f9.zip cpython-a80f4fb0481237e4ca4a9d9a57c52e0181b638f9.tar.gz cpython-a80f4fb0481237e4ca4a9d9a57c52e0181b638f9.tar.bz2 |
Fix "BytesWarning: str() on a bytes instance"
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 1e97bac..8ec3d71 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") |