Skip to content

[FR] Support for env-dependent filterwarnings entries #7525

@webknjaz

Description

@webknjaz

For example, if I want to add ignore for the deprecation warning that only happens on Python 3.5 and POSIX, I want some entries to only apply to that. The example pseudosyntax:

filterwarnings =
    error
    ignore::DeprecationWarning; python_version == '3.5' and sys_platform != 'Windows'

(that is completely made up after the env markers but hopefully, you've got the idea)

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: configrelated to config handling, argument parsing and config filetype: docsdocumentation improvement, missing or needing clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions