From d6078ed6d0cb8745460769bbb5dd2392c91c2f55 Mon Sep 17 00:00:00 2001 From: littlebutt's workshop Date: Tue, 6 May 2025 00:08:49 +0800 Subject: gh-132143: Fix the `AssertionError` in the test case `test.test_sys.TestRemoteExec` (#132248) --- Lib/test/test_sys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index b3dba9d..5f7171d 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -2101,7 +2101,7 @@ print("Remote script executed successfully!") prologue = '''\ import sys def audit_hook(event, arg): - print(f"Audit event: {event}, arg: {arg}") + print(f"Audit event: {event}, arg: {arg}".encode("ascii", errors="replace")) sys.addaudithook(audit_hook) ''' script = ''' -- cgit v0.12