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 Pytest4.x compatibility errors #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stanislavlevin
Copy link

This patch should fix such errors/warnings as:

  • raises / warns with a string as the second argument
    Deprecated since version 4.1.

  • pytest_funcarg__ prefix
    Removed in version 4.0.

  • getfuncargvalue

  • Metafunc.addcall
    Removed in version 4.0.

Fixes: #209

But there are other not fixed warnings, for example:

testing/code/test_source.py:282
  testing/code/test_source.py:282: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_compilefuncs_and_path_sanity will be ignored
    def test_compilefuncs_and_path_sanity(self):

This patch should fix such errors/warnings as:

- raises / warns with a string as the second argument
Deprecated since version 4.1.

- pytest_funcarg__ prefix
Removed in version 4.0.

- getfuncargvalue

- Metafunc.addcall
Removed in version 4.0.

Fixes: pytest-dev#209
Signed-off-by: Stanislav Levin <slev@altlinux.org>
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.

Building with pytest4 does not work at all
1 participant