{{ message }}
Change error type for bad objects in "with" and "async with"#4656
Merged
youknowone merged 1 commit intoMar 7, 2023
Merged
Conversation
dalinaum
commented
Mar 7, 2023
youknowone
approved these changes
Mar 7, 2023
youknowone
left a comment
Member
There was a problem hiding this comment.
contextlib seemed to related to contextlib.py version.
so this patch is fully fixing the with changes in 3.11. right?
Sorry, something went wrong.
Contributor
Author
|
@youknowone I'm going to replace contextlib.py and test again. |
Sorry, something went wrong.
This patch does not cover all cases of `test_contextlib.py` `bytecode::Instruction::SetupWith` and `BeforeAsyncWith` raise a TypeError instead of an AttributeError. Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
Contributor
Author
|
@youknowone #4659 fixed 3 tests in text_conextlib.py and this patch fixed 2 tests. However, there are still |
Sorry, something went wrong.
Member
|
at least, they are not regressions ;) |
Sorry, something went wrong.
Member
|
Thank you for contributing! |
Sorry, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
This patch does not cover all cases of
test_contextlib.pybytecode::Instruction::SetupWithandBeforeAsyncWithraise a TypeError instead of an AttributeError.It relates to #4650