Skip to content

Assertion rewrite should match files completely and avoid rewriting setup.py #2939

@nicoddemus

Description

@nicoddemus

Quoting @hroncok in pypa/setuptools#1170:

  • _pytest.config._mark_plugins_for_rewrite should not register setup when it sees setup.py
  • _pytest.assertion.rewrite._should_rewrite should probably match things that startswith mark + '.', not just mark (although I'm not very sure here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: rewriterelated to the assertion rewrite mechanismtype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions