Skip to content
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

Prevent parametrize with scope from breaking fixture dependencies #13249

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Anton3
Copy link

@Anton3 Anton3 commented Feb 24, 2025

Closes #13248

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Feb 24, 2025
@Anton3 Anton3 marked this pull request as ready for review February 24, 2025 12:26
# fixture. Scope control is enforced for parametrized fixtures
# by recreating the whole fixture tree on parameter change.
# Hence `fixturedef._scope`, not `scope`.
self._check_scope(fixturedef, fixturedef._scope)
subrequest = SubRequest(
Copy link
Member

Choose a reason for hiding this comment

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

I think need to validate what we do with subrequest there

The feature is slightly inconsistent and confused me

But I believe that's fine to do as a followup

I want to dig at history a bit before merge tho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided (automation) changelog entry is part of PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parametrize with scope breaks fixture dependencies
2 participants