Skip to content
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

Update test/test_with.py from CPython 3.11.2 #4648

Merged
merged 2 commits into from
Mar 7, 2023
Merged

Update test/test_with.py from CPython 3.11.2 #4648

merged 2 commits into from
Mar 7, 2023

Conversation

dalinaum
Copy link
Contributor

@dalinaum dalinaum commented Mar 6, 2023

#4564
Tests related to python/cpython#26809 have been marked as failing tests.

CPython Developers and others added 2 commits March 7, 2023 04:51
A TypeError is raised instead of an AttributeError in "with" and
"async with" statements for objects which do not support the context
manager or asynchronous context manager protocols correspondingly.

See also:
python/cpython#26809
Copy link
Contributor

@fanninpm fanninpm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@youknowone we should probably follow up on this change in error type.

@youknowone youknowone merged commit 3fe5a36 into RustPython:main Mar 7, 2023
@dalinaum dalinaum deleted the test_with branch March 7, 2023 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants