Skip to content

Conversation

bluetech
Copy link
Member

@bluetech bluetech commented Jun 7, 2024

There is no reason to allow this.

@RonnyPfannschmidt
Copy link
Member

Fixture def resolves none to function

Should we investigate the effect of requiring explicit function there as well

@bluetech
Copy link
Member Author

bluetech commented Jun 7, 2024

Should we investigate the effect of requiring explicit function there as well

Right, I was more reluctant to change there since adding a default requires reordering the parameters or making it kw-only and seemed not worth a breaking change just for this.

@bluetech bluetech merged commit db67107 into pytest-dev:main Jun 7, 2024
@bluetech bluetech deleted the register-fixture-scope-none branch June 7, 2024 09:12
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