GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — gh-107944: Improve error message for getargs with bad keyword arguments by hauntsaninja · Pull Request #114792 · python/cpython Conversation
|
| } | ||
| else { | ||
| PyErr_Format(PyExc_TypeError, | ||
| "%.200s%s got an unexpected keyword argument '%S'", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I made this error message match the one in ceval.c
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I still need to do the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| with self.check_suggestion_includes(suggestion): | ||
| func(bluch=None) | ||
|
|
||
| def test_unexpected_keyword_suggestion_via_getargs(self): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Do you mind adding a explicit test for when the suggestion fails (the 'else' case in the conditional here
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review! I added this test.
I also made a similar edit in the vgetargskeywords code path and added tests.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Very good work @hauntsaninja! Thanks for working on this
This looks great, I left some nit but please feel free to ignore
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.