Skip to content

Fix tests with pytest 6.2#2487

Merged
jaraco merged 1 commit intopypa:mainfrom
yan12125:fix-tests-pytest-6.2
Dec 20, 2020
Merged

Fix tests with pytest 6.2#2487
jaraco merged 1 commit intopypa:mainfrom
yan12125:fix-tests-pytest-6.2

Conversation

@yan12125
Copy link
Contributor

@yan12125 yan12125 commented Dec 13, 2020

Summary of changes

The latest pytest deprecates pytest.yield_fixture in favor of
pytest.fixture [1]. The changelog [2] says that both are the same.

[1] pytest-dev/pytest#7988
[2] https://docs.pytest.org/en/stable/changelog.html#pytest-6-2-0-2020-12-12

Pull Request Checklist

The latest pytest deprecates pytest.yield_fixture in favor of
pytest.fixture [1]. The changelog [2] says that both are the same.

[1] pytest-dev/pytest#7988
[2] https://docs.pytest.org/en/stable/changelog.html#pytest-6-2-0-2020-12-12
@thatch
Copy link
Contributor

thatch commented Dec 19, 2020

@jaraco Is there anything I can do to help either get this in, or restrict to pytest 5.x? I have a PR that's dependent on this one...

@jaraco
Copy link
Member

jaraco commented Dec 20, 2020

Beautiful. Thank you!

@jaraco jaraco merged commit 30b66d8 into pypa:main Dec 20, 2020
@yan12125 yan12125 deleted the fix-tests-pytest-6.2 branch December 20, 2020 17:17
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.

3 participants