Skip to content

Commit 69796ff

Browse files
Update replace to surrogateescape
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent c0f672e commit 69796ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_threading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,7 @@ def work():
23402340
if truncate is not None:
23412341
encoded = encoded[:truncate]
23422342
if sys.platform.startswith("sunos"):
2343-
expected = encoded.decode("ascii", "replace")
2343+
expected = encoded.decode("ascii", "surrogateescape")
23442344
else:
23452345
expected = os.fsdecode(encoded)
23462346
else:

0 commit comments

Comments
 (0)