Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning due to PEP660 editable packages #10235

Closed
fschulze opened this issue Aug 22, 2022 · 2 comments · Fixed by #10231
Closed

Warning due to PEP660 editable packages #10235

fschulze opened this issue Aug 22, 2022 · 2 comments · Fixed by #10231

Comments

@fschulze
Copy link
Contributor

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.

@RonnyPfannschmidt RonnyPfannschmidt linked a pull request Aug 22, 2022 that will close this issue
6 tasks
@RonnyPfannschmidt
Copy link
Member

closing as dupe of #10230 , which is easy to miss as the same

@RonnyPfannschmidt RonnyPfannschmidt closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2022
@fschulze
Copy link
Contributor Author

I actually saw that and didn't realize it has the same cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants