-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-117389: Fix test_compileall.EncodingTest
#117390
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
Conversation
I've addressed all your points, @vstinner! Agree with all of them. Please, take another look when you will have time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. You might remove UnicodeEncodeError test, or keep it. It's up to you.
'SyntaxError: bytes can only contain ASCII literal characters', | ||
res, | ||
) | ||
self.assertNotIn('UnicodeEncodeError', res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this check is useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was mentioned in #50965 (comment) so, I guess that it won't hurt.
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
(cherry picked from commit 44f6791) Co-authored-by: Nikita Sobolev <[email protected]>
(cherry picked from commit 44f6791) Co-authored-by: Nikita Sobolev <[email protected]>
backport to 3.11 is not needed anymore :( |
GH-118603 is a backport of this pull request to the 3.12 branch. |
GH-118604 is a backport of this pull request to the 3.11 branch. |
Changes:
coding
, because we don't really need that anymore()
toprint
bytes
cannot contain unicode charscompile_dir
call@vstinner can you please take a look? :)
test_compileall.EncodingTest
is broken #117389