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

Enable PYTHONWARNDEFAULTENCODING = 1 in CI #3763

Merged
merged 2 commits into from Jul 4, 2023

Conversation

Zac-HD
Copy link
Contributor

@Zac-HD Zac-HD commented Jul 4, 2023

Fixes #3658, and ensures that #3695 won't regress later.

For clarity I switched most uses of with open(...) to use pathlib, including a few where the encoding was already OK - I find it much easier to read boilerplate-y tests when they're consistent, and I thought it was worth maintaining that.

@Zac-HD Zac-HD force-pushed the enable-warndefaultencoding branch 2 times, most recently from e5d4a91 to cc90345 Compare July 4, 2023 19:57
@Zac-HD Zac-HD force-pushed the enable-warndefaultencoding branch from cc90345 to d07c923 Compare July 4, 2023 20:02
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing these!

@Zac-HD
Copy link
Contributor Author

Zac-HD commented Jul 4, 2023

No problem! I'm looking forward to HypothesisWorks/hypothesis#3691 running clean on upstream releases 😁

@hauntsaninja hauntsaninja merged commit 8e618f3 into psf:main Jul 4, 2023
41 checks passed
@Zac-HD Zac-HD deleted the enable-warndefaultencoding branch July 5, 2023 04:33
@hauntsaninja hauntsaninja mentioned this pull request Jul 10, 2023
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.

Enable PEP-597 EncodingWarning in CI
2 participants