Skip to content

Plugin raises error with --pdb option despite using -n0 #937

Closed
@atugushev

Description

@atugushev
# pyproject.toml
[tool.pytest.ini_options]
addopts = "--dist=load"
$ pytest  --pdb -n0
ERROR: --pdb is incompatible with distributing tests; try using -n0 or -nauto.

As you can see, -n0 is already passed. However, pytest still suggests using -n0 to address the issue.

Solution

-n0 should imply --dist=no.

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