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 Pytest's deprecation warnings about nose usage #8758

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

stanislavlevin
Copy link
Contributor

@stanislavlevin stanislavlevin commented Nov 14, 2022

Pytest 7.2.0 deprecated plain setup and teardown functions and methods as nose idioms:
https://docs.pytest.org/en/latest/changelog.html#pytest-7-2-0-2022-10-23

setup can be safely replaced with setup_method:
https://docs.pytest.org/en/stable/deprecations.html#setup-teardown

Closes #8757

Pytest 7.2.0 deprecated plain `setup` and `teardown` functions and
methods as nose idioms:
https://docs.pytest.org/en/latest/changelog.html#pytest-7-2-0-2022-10-23

`setup` can be safely replaced with `setup_method`:
https://docs.pytest.org/en/stable/deprecations.html#setup-teardown

Fixes: encode#8757
Signed-off-by: Stanislav Levin <slev@altlinux.org>
@tomchristie
Copy link
Member

Okay. Thanks.

@tomchristie tomchristie merged commit 78cdae6 into encode:master Nov 15, 2022
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.

tests failures against Pytest 7.2.0
2 participants