Skip to content

Commit 5e4c2a7

Browse files
committed
gh-132143: fix codec
1 parent 85bc489 commit 5e4c2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_sys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ def test_remote_exec_raises_audit_event(self):
20952095
prologue = '''\
20962096
import sys
20972097
def audit_hook(event, arg):
2098-
print(f"Audit event: {event}, arg: {arg}")
2098+
print(f"Audit event: {event}, arg: {arg}".encode("ascii", errors="replace"))
20992099
sys.addaudithook(audit_hook)
21002100
'''
21012101
script = '''

0 commit comments

Comments
 (0)