Skip to content

Can't use -p no:python since 4.5.0 #5277

@drothlis

Description

@drothlis

I have a custom pytest plugin that runs a test remotely. I run pytest with -p my_plugin -p no:python so that it doesn't also run it locally. Since pytest 4.5.0, pytest raises UsageError: plugin python cannot be disabled.

This behaviour was introduced in #5005. I have read through that PR, and its issue #4976, and PR #4965 where the change was originally suggested, but I still don't understand the reason for preventing p -no:python.

The reason I use pytest for this, is because the PyCharm IDE provides pytest integration. With my configuration I can click on a "play" icon next to the test name, and PyCharm runs pytest. PyCharm doesn't allow configuring a custom shell command, hence I've been using pytest.

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