Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 534db4e

Browse files
author
Victor Stinner
committed
Issue #8495: test_gdb uses replace error handler when decoding utf8 output
1 parent 4d07804 commit 534db4e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def run_gdb(self, *args):
5959
out, err = subprocess.Popen(
6060
args, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
6161
).communicate()
62-
return out.decode('utf-8'), err.decode('utf-8')
62+
return out.decode('utf-8', 'replace'), err.decode('utf-8', 'replace')
6363

6464
def get_stack_trace(self, source=None, script=None,
6565
breakpoint=BREAKPOINT_FN,

Misc/NEWS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,8 +1142,8 @@ Tests
11421142
- Issue #8108: test_ftplib's non-blocking SSL server now has proper handling
11431143
of SSL shutdowns.
11441144

1145-
- Issues #8279, #8330, #8437, #8480: Fix test_gdb failures, patch written by
1146-
Dave Malcolm
1145+
- Issues #8279, #8330, #8437, #8480, #8495: Fix test_gdb failures, patch
1146+
written by Dave Malcolm
11471147

11481148
- Issue #3864: Skip three test_signal tests on freebsd6 because they fail
11491149
if any thread was previously started, most likely due to a platform bug.

0 commit comments

Comments
 (0)