-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
test.test_sys.TestRemoteExec
fails with AssertionError
#132143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you print |
test_sys
fails with AssertionError
test.test_sys.TestRemoteExec.test_remote_exec_raises_audit_event
fails with AssertionError
test.test_sys.TestRemoteExec.test_remote_exec_raises_audit_event
fails with AssertionError
test.test_sys.TestRemoteExec
fails with AssertionError
I printed out
I think it is not a serious problem :) |
Great - that helps. Seems to stem from Lines 2097 to 2098 in 0a10b45
where we should care about encoding errors when printing. |
Although it is benign, I'd prefer to fix it, since that should hopefully be easy, and the tests should not depend on the host encoding. Can you e.g. try print(f"Audit event: {event}, arg: {arg}".encode("ascii", errors="replace")) because the
|
It works!
|
Great! Would you like to create a pull request? |
Bug report
Bug description:
The test case
test_sys
failed when I ranrt.bat test_sys
. The unittest report is as followIt seems that the problem is caused by an unfinished subprocess since it runs synchronizely. However, when I commented the first two assertion statements.
The
stderr
is printed out as followOS: Windows 10 22H2
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
AssertionError
in the test casetest.test_sys.TestRemoteExec
#132248The text was updated successfully, but these errors were encountered: