You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to tmp_dir.
(note: small typos in issue title: "debit" --> "debt", and missing . before "write")
abravalheri
changed the title
[debit] EncodingWarning when using pytest's tmpdir.join(...)write(...)
[debt] EncodingWarning when using pytest's tmpdir.join(...).write(...)Apr 24, 2024
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: