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

Removed print statement from tests #6660

Merged
merged 1 commit into from
Oct 13, 2022
Merged

Conversation

radarhere
Copy link
Member

The following test function

def pixel(im):
if hasattr(im, "im"):
return f"{im.mode} {repr(im.getpixel((0, 0)))}"
else:
if isinstance(im, int):
return int(im) # hack to deal with booleans
print(im)

is used like so
assert pixel(ImageMath.eval("A+B", A=A, B=B)) == "I 3"

If the print statement is reached, then the assertion will fail anyway, so it is just debugging code. This PR removes it.

@radarhere radarhere changed the title Removed print statement Removed print statement from tests Oct 13, 2022
@radarhere radarhere mentioned this pull request Oct 13, 2022
@hugovk hugovk merged commit 44510d2 into python-pillow:main Oct 13, 2022
@hugovk hugovk added the Cleanup label Oct 13, 2022
@radarhere radarhere deleted the print branch October 13, 2022 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants