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

Fix erronous python error setting on failed cast #2684

Closed
wants to merge 1 commit into from

Conversation

albanD
Copy link
Contributor

@albanD albanD commented Nov 20, 2020

Description

Proposed fix for #2682 if maintainers agree that this is the right thing to do.

Fix crash in test suite for both debug cpython 3.8 and 3.9

Suggested changelog entry:

Not sure how detailed the description below should be. Let me know if this needs updating.

Prevent setting python error twice on failed argument cast

@YannickJadoul
Copy link
Collaborator

Cfr. #2682 (comment), this PR is more complex than the proposed workaround in #2422 (#2422 (comment)), but doesn't seem to handle all the subtleties regarding #2336. In order to fix #2682, I propose to stick to @bstaletic's minimal workaround, and fix #2336 after a more thorough investigation of the issue and its consequences.

@albanD
Copy link
Contributor Author

albanD commented Nov 20, 2020

I do agree that it should be throwing. I opened this PR mostly so that you could see the concrete code I was talking about.
Closing as not the right fix.

@albanD albanD closed this Nov 20, 2020
@YannickJadoul
Copy link
Collaborator

Perfect. Thanks for the effort and investigation! And again apologies that I didn't make the link yesterday evening (evening/night for me, at least) :-)

@albanD
Copy link
Contributor Author

albanD commented Nov 20, 2020

No worries!

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.

2 participants