Skip to content

pytest 6 support #12

@jonringer

Description

@jonringer

Using SpecModule constructor directly is deprecated

/nix/store/vyc4y8lwn4ag2jm6xwpdba02ykp4xdw8-python3.7-pytest-relaxed-1.1.5/lib/python3.7/site-packages/pytest_relaxed/plugin.py:31: in pytest_collect_file
    return SpecModule(path, parent)
/nix/store/crb53kmh26fsijj7jpm9pj75j9irajpc-python3.7-pytest-6.0.1/lib/python3.7/site-packages/_pytest/nodes.py:95: in __call__
    warnings.warn(NODE_USE_FROM_PARENT.format(name=self.__name__), stacklevel=2)
E   pytest.PytestDeprecationWarning: Direct construction of SpecModule has been deprecated, please use SpecModule.from_parent.
E   See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions