Skip to content

Using positional arg/dir outside of PWD does not load options from explicit plugin #1594

@blueyed

Description

@blueyed

py.test -p project.lock8.plugin /tmp project --custom-option fails with

py.test: error: unrecognized arguments: --custom-option

The option is defined through pytest_addoption and parser.addoption therein.

Using an additional directory outside of $PWD seems to cause this.

I have tried using --confcutdir=$PWD, but it still did not work.

pytest 2.9.3.dev0 (current master).

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