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

don't use deprecated pytest.yield_fixture in readme #146

Closed
wants to merge 1 commit into from
Closed

don't use deprecated pytest.yield_fixture in readme #146

wants to merge 1 commit into from

Conversation

Mattwmaster58
Copy link

See https://docs.pytest.org/en/latest/yieldfixture.html:

Important

Since pytest-3.0, fixtures using the normal fixture decorator can use a yield statement to provide fixture values and execute teardown code, exactly like yield_fixture in previous versions.

Marking functions as yield_fixture is still supported, but deprecated and should not be used in new code.

@simonfagerholm
Copy link
Contributor

Duplicate of #138

@Tinche
Copy link
Member

Tinche commented Mar 29, 2020

Merged in the other one, thanks!

@Tinche Tinche closed this Mar 29, 2020
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.

None yet

3 participants