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

Consistently write in binary format in PPM tests #6677

Merged
merged 1 commit into from
Oct 23, 2022

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Oct 23, 2022

test_file_ppm.py sometimes writes in binary format

with open(path, "wb") as f:
f.write(b"P3\n128 128\n255\n256")

and sometimes does not.
with open(path, "w", encoding="utf-8") as f:
f.write("P6")

This PR consistently writes in binary format in test_file_ppm.py.

@radarhere radarhere mentioned this pull request Oct 23, 2022
@radarhere radarhere changed the title Write in binary format Consistently write in binary format in PPM tests Oct 23, 2022
@hugovk hugovk added the automerge Automatically merge PRs that are ready label Oct 23, 2022
@mergify mergify bot merged commit eca2f5c into python-pillow:main Oct 23, 2022
@radarhere radarhere deleted the binary branch October 23, 2022 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PRs that are ready Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants