summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gdb.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-04-23 20:33:55 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-04-23 20:33:55 (GMT)
commit534db4e19f4d03e4bf85520bd44e0bf90fb38ae3 (patch)
tree505fe7e1705e7f1181a1b425bd3a9904bf44bea1 /Lib/test/test_gdb.py
parent4d078046605a53e061aedfb2694baade6d3f5483 (diff)
downloadcpython-534db4e19f4d03e4bf85520bd44e0bf90fb38ae3.zip
cpython-534db4e19f4d03e4bf85520bd44e0bf90fb38ae3.tar.gz
cpython-534db4e19f4d03e4bf85520bd44e0bf90fb38ae3.tar.bz2
Issue #8495: test_gdb uses replace error handler when decoding utf8 output
Diffstat (limited to 'Lib/test/test_gdb.py')
-rw-r--r--Lib/test/test_gdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index 489ceef..4cff870 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -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,