Skip to content

Config.known_args_namespace contains duplicate value #13484

Open
@bluetech

Description

@bluetech

While looking at another issue I noticed that pytest -Werror results in config.known_args_namespace.pythonwarnings having the value ['error', 'error']. That is the value is duplicated.

This happens because:

It's not actively harmful for -W but might be for other cases. Possibly it only affects builtin options so might only affect -W -- I didn't dig too deep.

The second parse was added in 0a27f69

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: configrelated to config handling, argument parsing and config filetype: bugproblem that needs to be addressed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions