https://github.com/python/cpython/commit/d6078ed6d0cb8745460769bbb5dd2392c91c2f55
commit: d6078ed6d0cb8745460769bbb5dd2392c91c2f55
branch: main
author: littlebutt's workshop <[email protected]>
committer: pablogsal <[email protected]>
date: 2025-05-05T17:08:49+01:00
summary:
gh-132143: Fix the `AssertionError` in the test case
`test.test_sys.TestRemoteExec` (#132248)
files:
M Lib/test/test_sys.py
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index b3dba9dad006ab..5f7171d02c5602 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -2101,7 +2101,7 @@ def test_remote_exec_raises_audit_event(self):
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 = '''
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]