Skip to content
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

Decode error in pytest.ini with chinese characters #5 #39

Closed
wants to merge 2 commits into from

Conversation

RobertT93
Copy link

@RobertT93 RobertT93 commented May 16, 2022

seems to fix Decode error in pytest.ini with chinese characters #5
#5

@RobertT93
Copy link
Author

sorry this is not the right way to do this

@RobertT93 RobertT93 closed this May 16, 2022
@dongfangtianyu
Copy link

Hey @RobertT93, what happened. Why do you think it's incorrect?

iniconfig announced that it supports comments , so it seems right to open files using utf8.

@RobertT93
Copy link
Author

Hey @RobertT93, what happened. Why do you think it's incorrect?

iniconfig announced that it supports comments , so it seems right to open files using utf8.

code right now use open without encoding parameter, in this way python gets default encoding for system. "The default encoding is platform dependent (whatever locale.getpreferredencoding() returns)," In this pull request i hardcoded this as utf-8. This may lead to change of behavior. in another thread adding parameter to pytest was suggested and i think this may be the key #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants