Skip to content

Commit d6078ed

Browse files
authored
gh-132143: Fix the AssertionError in the test case test.test_sys.TestRemoteExec (#132248)
1 parent e294e16 commit d6078ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_sys.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ def test_remote_exec_raises_audit_event(self):
21012101
prologue = '''\
21022102
import sys
21032103
def audit_hook(event, arg):
2104-
print(f"Audit event: {event}, arg: {arg}")
2104+
print(f"Audit event: {event}, arg: {arg}".encode("ascii", errors="replace"))
21052105
sys.addaudithook(audit_hook)
21062106
'''
21072107
script = '''

0 commit comments

Comments
 (0)