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

fixtures: fix crash when parametrize(scope="package") is used without a Package #11256

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

bluetech
Copy link
Member

There is handling for scope="class" without a class, but not for scope="package" without a package. It would fail the assert.

@bluetech
Copy link
Member Author

I noticed this while reviewing @sadra-barikbin's changes in #11220 (unfortunately it will create a minor conflict).

Previously this code was not covered, which I noticed in the coverage report of #11138.

…ut a Package

There as handling for `scope="class"` without a class, but not for
`scope="package"` without a package. It would fail the assert.
@bluetech bluetech merged commit c754da1 into pytest-dev:main Jul 28, 2023
@bluetech bluetech deleted the scope-pkg-crash branch July 28, 2023 19:48
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