-
-
Notifications
You must be signed in to change notification settings - Fork 18.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
BUG: Expand encoding for C engine beyond utf-16 #30771
Conversation
60ca4e3
to
74ab9cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gfyoung thanks for the the PR. a couple of comments.
@@ -5,6 +5,7 @@ | |||
|
|||
from io import BytesIO | |||
import os | |||
import tempfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can pytest builtin fixture or ensure_clean be used instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need the encoding
to be parameterized in this test, which can't be done with ensure_clean
at the moment (though could be a useful enhancement as a follow-up).
The pytest
builtin fixture has a similar issue (as an aside, if I had to choose between ensure_clean
or pytest
fixture, I would generally go with our in-house one since it's a little more flexible to use).
And by utf-16, we mean the string "utf-16" Closes pandas-dev#24130
74ab9cd
to
2a62025
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - nice find
thanks @gfyoung very nice |
These keywords will be passed through to tempfile constructor functions. Follow-up: pandas-dev#30771
These keywords will be passed through to tempfile constructor functions. Follow-up: pandas-dev#30771
These keywords will be passed through to tempfile constructor functions. Follow-up: #30771
And by
utf-16
, we mean the string"utf-16"
Closes #24130