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

Add unit tests to show, that encoding parameter in open_resource method is required #5525

Closed

Conversation

Lopkop
Copy link
Contributor

@Lopkop Lopkop commented Jul 10, 2024

I am creating this PR so you can see the necessity of fixing issue #5504
Tests are marked as skipped, so it will not break.

os.remove("tests/static/test.txt")

with open("tests/static/test.txt", "w", encoding=encoding) as f:
f.write("" + "Hello World!")
Copy link
Member

Choose a reason for hiding this comment

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

Is that an empty string or something non-printable/zero-width? If it's the latter, please use an escape sequence instead so it's clear it's not something useless.

@davidism davidism closed this Jul 10, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants