]> granicus.if.org Git - python/commitdiff
Issue #8495: test_gdb uses replace error handler when decoding utf8 output
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 23 Apr 2010 20:33:55 +0000 (20:33 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 23 Apr 2010 20:33:55 +0000 (20:33 +0000)
Lib/test/test_gdb.py
Misc/NEWS

index 489ceefa1afa32795fa0e92801292351f6d06f8a..4cff8702ce904c993a88b0928b16486618409a60 100644 (file)
@@ -59,7 +59,7 @@ class DebuggerTests(unittest.TestCase):
         out, err = subprocess.Popen(
             args, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
             ).communicate()
-        return out.decode('utf-8'), err.decode('utf-8')
+        return out.decode('utf-8', 'replace'), err.decode('utf-8', 'replace')
 
     def get_stack_trace(self, source=None, script=None,
                         breakpoint=BREAKPOINT_FN,
index 34cb5bd8d64ff9bd6f61470f0c90be5de8201cec..128f305b9a85d3e51ce2fab227d59aab47c3d568 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1142,8 +1142,8 @@ Tests
 - Issue #8108: test_ftplib's non-blocking SSL server now has proper handling
   of SSL shutdowns.
 
-- Issues #8279, #8330, #8437, #8480: Fix test_gdb failures, patch written by
-  Dave Malcolm
+- Issues #8279, #8330, #8437, #8480, #8495: Fix test_gdb failures, patch
+  written by Dave Malcolm
 
 - Issue #3864: Skip three test_signal tests on freebsd6 because they fail
   if any thread was previously started, most likely due to a platform bug.