-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[debt] EncodingWarning
when using pytest
's tmpdir.join(...).write(...)
#4326
Comments
Since |
So we have two paths forward:
Either way, I've added a todo comment in #4255 (note: small typos in issue title: "debit" --> "debt", and missing |
EncodingWarning
when using pytest
's tmpdir.join(...)write(...)
EncodingWarning
when using pytest
's tmpdir.join(...).write(...)
In the last CI tests we can see the following warnings:
This seems to came from the fact that we are using
tmpdir.join(...)write(...)
.This method does not allow to specify the
encoding
argument.We could replace it with
write_text(..., encoding="utf-8")
.However the
tmpdir
fixture itself is deprecated, so another possibility would be moving totmp_dir
.Part of #3810.
The text was updated successfully, but these errors were encountered: