Skip to content

[BUG] rewrite module uses the wrong version import (fails when the file doens't exist) #6831

@jmrgibson

Description

@jmrgibson

It should use from _pytest import __version__ instead of from _pytest._version import version

https://github.com/pytest-dev/pytest/blob/master/src/_pytest/assertion/rewrite.py#L23

I can put a PR up for this in a few weeks, unless anyone else wants to roll it into their other changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: rewriterelated to the assertion rewrite mechanism

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions