Skip to content

Pytest deprecation warnings #42

Closed
@tophers42

Description

Just started using pytest-black and I'm loving it, but I'm getting a bunch of deprecation warnings:

============================================================================================================= warnings summary ==============================================================================================================
/usr/local/lib/python3.8/site-packages/pytest_black.py:26: 84 tests with warnings
  /usr/local/lib/python3.8/site-packages/pytest_black.py:26: PytestDeprecationWarning: direct construction of BlackItem has been deprecated, please use BlackItem.from_parent
    return BlackItem(path, parent)

-- Docs: https://docs.pytest.org/en/latest/warnings.html

Requirements.txt:

pytest==5.4.1
pytest-black==0.3.8

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