Skip to content

PytestDeprecationWarning: direct construction of Function has been deprecated #147

Closed
@skewty

Description

@skewty

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 =========================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions