-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
EncodingWarnings in utils.subprocess and cache modules #12070
Comments
It looks like at least one of those uses was fixed in bd1563d... so why am I seeing the warning on pip 23.1.2? |
The difficulty with the We can of course force UTF-8 and tell users that it's not our problem if build tools don't produce that and as a result the output is mojibake. I genuinely don't know if that's the best thing to do here. Up until now, we've chosen to do whatever Python does by default - not accidentally, because we forgot to specify, but deliberately, to match the best guess of the stdlib. Personally, I dislike the fact that the stdlib is now making it impossible to explicitly say "do what the stdlib does" without getting a warning, but we have to live with that situation. |
I think I read somewhere that |
Description
Running the tests on pytest-perf with PYTHON_WARN_DEFAULT_ENCODING, I see several warnings:
Expected behavior
pip should run clean without EncodingWarnings with PYTHON_WARN_DEFAULT_ENCODING set.
pip version
23.1.2
Python version
3.11.3
OS
macOS
How to Reproduce
git clone https://github.com/jaraco/pytest-perf; cd pytest-perf
tox -- -k runner
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: