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

use get_closest_marker instead of get_marker #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Nicusor97
Copy link

In the latest version of pytest was removed the get_marker method .

#4546: Remove Node.get_marker(name) the return value was not usable for more than a existence check.

Use Node.get_closest_marker(name) as a replacement.
Link to the pytest changelog : https://docs.pytest.org/en/latest/changelog.html

…hod was removed in the new pytest version (4.1.0)
@gillesdouaire
Copy link

Would that also be compatible with older versions of pytest?

@Nicusor97
Copy link
Author

hmm , you are right ! It should be compatible with all pytest versions and If I will make some changes , it should be compatible . Wait until I will push a new commit

@Nicusor97
Copy link
Author

Now , this module will be compatible with all pytest version ! Thanks @gillesdouaire .

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