-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
testdir.makepyfile fails to write contents with utf-8
on Python 2.7
#2738
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 @RonnyPfannschmidt as the PR is merged this can be closed I think. |
yup, thanks 👍 |
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: