-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Pickup addition positional args passed to _parse_parametrize_args #5483
Conversation
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.
Thanks! Please also add a CHANGELOG entry and a quick test which shows the problem. 👍
Will do, will also change the arg names which is causing the tests to fail currently. Any input on where the test should be added? |
I think |
(@kevinjfoley perhaps hold on to your patch for a bit, wouldn't want you to waste your time) |
I'm a big fan of keyword-only arguments... but we broke this in 4.6, so I'd prefer to accept the PR (thanks @kevinjfoley!) and then have a follow-up issue to work out what and how to convert to keyword-only arguments. |
eb87a91
to
9571443
Compare
Codecov Report
@@ Coverage Diff @@
## master #5483 +/- ##
==========================================
+ Coverage 96.07% 96.07% +<.01%
==========================================
Files 117 117
Lines 25538 25542 +4
Branches 2473 2473
==========================================
+ Hits 24536 24540 +4
Misses 698 698
Partials 304 304
Continue to review full report at Codecov.
|
No problem! Pushed a squashed commit with the fix and a test demonstrating the problem, let me know if anything else is needed. |
Yeah, I agree, thanks for putting me in check. 😁 |
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.
Thanks again @kevinjfoley, appreciate it!
…est-dev#5483) Pickup addition positional args passed to _parse_parametrize_args
Happy to be able to contribute! |
Hmmm i don't think this should be merged, it was a bug that parametrize swallowed extra arguments (the test is asserting that a bug exists) |
Oh already merged 🤔 |
Not really, the extra arguments are valid, here's the signature: Line 947 in 37fce6c
So it is in fact a regression, I'm afraid. |
Yikes, always assumed those were kwargonly, and it's probably too late to do that for 5.0 |
I guess we should open an issue then to discuss how to change that so it emits a warning in 5.X so we can turn it into keyword-only in 6.0 at least. |
[4.6] Pickup addition positional args passed to _parse_parametrize_ar… (#5483)
Fix for #5482.