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

PytestDeprecationWarning: direct construction of Function has been deprecated #147

Closed
skewty opened this issue Mar 21, 2020 · 2 comments
Closed

Comments

@skewty
Copy link

skewty commented Mar 21, 2020

pytest version 5.4.1

=============================== warnings summary ===============================
/home/scott/Projects/combox2/venv37/lib/python3.7/site-packages/pytest_asyncio/plugin.py:39
/home/scott/Projects/combox2/venv37/lib/python3.7/site-packages/pytest_asyncio/plugin.py:39
  /home/scott/Projects/combox2/venv37/lib/python3.7/site-packages/pytest_asyncio/plugin.py:39: PytestDeprecationWarning: direct construction of Function has been deprecated, please use Function.from_parent
    item = pytest.Function(name, parent=collector)

/home/scott/Projects/combox2/venv37/lib/python3.7/site-packages/pytest_asyncio/plugin.py:45
/home/scott/Projects/combox2/venv37/lib/python3.7/site-packages/pytest_asyncio/plugin.py:45
  /home/scott/Projects/combox2/venv37/lib/python3.7/site-packages/pytest_asyncio/plugin.py:45: PytestDeprecationWarning: direct construction of Function has been deprecated, please use Function.from_parent
    item = pytest.Function(name, parent=collector)  # To reload keywords.

-- Docs: https://docs.pytest.org/en/latest/warnings.html
======================== 1 passed, 4 warnings in 0.09s =========================
@simonfagerholm
Copy link
Contributor

Duplicate of #141

@simonfagerholm
Copy link
Contributor

simonfagerholm commented Mar 31, 2020

@skewty Fixed in #142

@Tinche Tinche closed this as completed Mar 31, 2020
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

No branches or pull requests

3 participants