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

Fix yield_fixture deprecation #1211

Merged

Conversation

abraham-chan
Copy link
Contributor

@abraham-chan abraham-chan commented Jun 28, 2021

I get this warning when running py.test. Simply changed .yield_fixture to .fixture as instructed.

tests/test_utils.py:234
  /Users/abrahamchan/Source/thefuck/tests/test_utils.py:234: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
  Use @pytest.fixture instead; they are the same.
    @pytest.yield_fixture(autouse=True)

Copy link
Collaborator

@scorphus scorphus left a comment

Choose a reason for hiding this comment

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

Thanks, @abraham-chan 👍

@scorphus scorphus merged commit 2f4adcf into nvbn:master Jun 29, 2021
@scorphus scorphus added this to the 3.32 milestone Jul 18, 2021
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