Skip to content

Conversation

bluetech
Copy link
Member

In CallSpec2.setmulti the params and _arg2scope dicts are always set together (link).

Further, the get_parametrized_fixture_keys accesses _arg2scope for all argnames without a check (link), which I think rules out that the code protects against plugin shenanigans.

After removing the suppress, adjust the comment and code to make more sense.

In `CallSpec2.setmulti` the `params` and `_arg2scope` dicts are always
set together.

Further, the `get_parametrized_fixture_keys` accesses `_arg2scope` for
all argnames without a check, which I think rules out that the code
protects against plugin shenanigans.

After removing the suppress, adjust the comment and code to make more
sense.
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Sounds reasonable. 👍

@bluetech bluetech merged commit b510adf into pytest-dev:main Feb 23, 2024
@bluetech bluetech deleted the fixtures-cleanups-2 branch February 23, 2024 13:35
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