Skip to content

Warning due to PEP660 editable packages #10235

@fschulze

Description

@fschulze

The recently added PEP660 support for editable package installs seems to interfere with assert rewriting. I get the following warning:

PytestAssertRewriteWarning: Module already imported so cannot be rewritten: __editable__...

This seems to be caused by the new __editable__* files in site-packages.

If I install the editable packages with --no-use-pep517 the __editable__* files aren't generated and the warnings are gone.

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