Skip to content

Conversation

@bluetech
Copy link
Member

The code in _get_direct_parametrize_args only handled indirect=True/False, it didn't account for indirect=[...]. This caused the added test to start failing after d56b1af.

Fix by using the common _resolve_args_directness function. It's a bit heavy for the task but correctness first...

Fix #13974.

I am not marking for backport because the bug was laying dormant for a while and only uncovered by d56b1af which is only in main, not yet released.

@bluetech bluetech added the skip news used on prs to opt out of the changelog requirement label Nov 17, 2025
@braingram
Copy link

braingram commented Nov 17, 2025

I tested this with the downstream test suite which lead to #13974 and with this PR the tests are back to passing. Thanks for the quick fix!
https://github.com/asdf-format/asdf/actions/runs/19445301685/job/55638606133?pr=1990#step:10:113

The function name is ambiguous, full nodeid is more helpful.
…ect=[...]`

The code in `_get_direct_parametrize_args` only handled
`indirect=True/False`, it didn't account for `indirect=[...]`. This
caused the added test to start failing after
d56b1af.

Fix by using the common `_resolve_args_directness` function. It's a bit
heavy for the task but correctness first...

Fix pytest-dev#13974.
@bluetech bluetech force-pushed the duplicate-parametrization-fix branch from 48d3478 to adcdeb9 Compare November 18, 2025 20:02
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

lgtm!

@bluetech bluetech merged commit 6b6502e into pytest-dev:main Nov 20, 2025
33 checks passed
@bluetech bluetech deleted the duplicate-parametrization-fix branch November 20, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news used on prs to opt out of the changelog requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"duplicate parametrization" errors with pytest dev

4 participants