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 deprecation error #483

Open
skeptycal opened this issue Jul 20, 2020 · 0 comments · May be fixed by #493
Open

fix pytest deprecation error #483

skeptycal opened this issue Jul 20, 2020 · 0 comments · May be fixed by #493

Comments

@skeptycal
Copy link

deprecation warning reported by pytest during testing: direct contruction is deprecated as of pytest 5.4 and will be removed in the future. Use of the constructor [Node].from_parent is recommended.

$ py setup test

conftest.py:14
  .../docopt/conftest.py:14: PytestDeprecationWarning: direct construction of DocoptTestFile has been deprecated, please use DocoptTestFile.from_parent
    return DocoptTestFile(path, parent)

conftest.py:44: 175 tests with warnings
  .../docopt/conftest.py:44: PytestDeprecationWarning: direct construction of DocoptTestItem has been deprecated, please use

DocoptTestItem.from_parent
    yield DocoptTestItem("%s(%d)" % (name, index), self, doc, case)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
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 a pull request may close this issue.

1 participant