Use is None

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2024-02-12 19:12:08 +11:00 committed by GitHub
parent 3f6422b512
commit ea0240bf2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,7 +147,7 @@ class TestImageGetPixel(AccessTest):
pytest.skip("Support not added to deprecated module for BGR;* modes")
expected_color = (
expected_color_int if expected_color_int is not None else self.color(mode)
self.color(mode) if expected_color_int is None else expected_color_int
)
# check putpixel