gh-132143: Fix the AssertionError in the test case test.test_sys.TestRemoteExec (#132248)

This commit is contained in:
littlebutt's workshop 2025-05-06 00:08:49 +08:00 committed by GitHub
parent e294e161a8
commit d6078ed6d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = '''