testdir.makepyfile fails to write contents with `utf-8` on Python 2.7 #2738
Labels
Comments
Thanks for the report. I experienced this myself on occasion and also noticed you had the same problem on your PR yesterday. |
Yeah. I had to find a way to test without mixing the scopes :) Do you have a fix already? Should I do a PR with the test in 4111b66? |
I don't think it will be needed, I will add a specific test for |
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Aug 31, 2017
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Aug 31, 2017
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Aug 31, 2017
@nicoddemus @RonnyPfannschmidt as the PR is merged this can be closed I think. |
yup, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Versions:
The class
_pytest.pytester.Testdir._makefile
crashes withUnicodeDecodeError
when trying to write Python withutf-8
string.There's a test that reproduces the bug:
Resulting in:
The text was updated successfully, but these errors were encountered: