-
-
Notifications
You must be signed in to change notification settings - Fork 3k
fix #13031: use the concrete id NOTSET for the empty parameter list #13073
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 #13031: use the concrete id NOTSET for the empty parameter list #13073
Conversation
c87c874 to
da7251c
Compare
changelog/13031.improvement.rst
Outdated
| @@ -0,0 +1,2 @@ | |||
| ``pytest.mark.parametrize([], isfunc=...)`` will no longer call the idfunc with the internal ``NOTSET`` | |||
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.
isfunc? Is that correct?
Also can you rewrite this from the POV of an user? I mean the description by itself is hard to understand without reading the associated issue first.
testing/test_mark.py
Outdated
| def idfunc(value): | ||
| raise ValueError() |
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.
| def idfunc(value): | |
| raise ValueError() | |
| def idfunc(value): | |
| raise ValueError() |
nicoddemus
left a comment
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.
I think we just need to update the changelog as commented and we're good to go. 👍
da7251c to
38be67a
Compare
…ter list stand-in this ensures we dont invoke idfunc with the internal NOTSET enum token
38be67a to
4dcbbcb
Compare
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Backport to 8.3.x: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 7d585ac on top of patchback/backports/8.3.x/7d585acd1123a6bf6df6ff3279757bb5a69a9417/pr-13073 Backporting merged PR #13073 into main
🤖 @patchback |
this ensures we dont invoke idfunc with the internal NOTSET enum token
closes #13031