-
Notifications
You must be signed in to change notification settings - Fork 263
PYTHONSAFEPATH in tests? #2358
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
Comments
Could you expand on what you mean here @henryiii ? I don't quite follow what you're proposing - what would you set it to, and how would that change behaviour? |
If you set |
Ah, thanks for the info. I see it's also available as a flag, I'm a bit unsure about adding it across the board... it feels like it could break things like Is the cwd-in-pythonpath a change in cibuildwheel v3.0? I had understood that the change to running tests from inside the project dir didn't affect that, as pytest added the cwd to sys.path anyway. |
That flag would require 3.11+, though. The environment variable would just be ignored on 3.10+. And the point was to try to reduce breakage for people upgrading 2->3; if people need to change things, they could just add
You can't do
Yes, cibuildwheel 2 changed the directory to a new empty directory (plus a small test file designed to produce an error if you ran it by mistake), and forced everyone to use Since you can always do PS: If |
So maybe we could add |
Originally posted by @henryiii in #2348
The text was updated successfully, but these errors were encountered: