Skip to content

Commit

Permalink
amiright
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 7, 2023
1 parent e1cd435 commit 5c874ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/test_lib_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

@pytest.mark.parametrize("mode", mode_names)
def test_equal(mode):
num_img_bytes = len(Image.new(mode, (2, 2)).tobytes())
data = b"0\xd2\xf9\x92Db\xbd]\x84\x86fd%\xfeR\x1b"
img_a = Image.frombytes(mode, (2, 2), data)
img_b = Image.frombytes(mode, (2, 2), data)
num_img_bytes = len(Image.new(mode, (4, 2)).tobytes())
data = b"0\xd2\xf9\x92Db\xbd]\x84\x86fd%\xfeR\x1b0\xd2\xf9\x92Db\xbd]\x84\x86fd%\xfeR\x1b"
img_a = Image.frombytes(mode, (4, 2), data)
img_b = Image.frombytes(mode, (4, 2), data)
assert img_a.tobytes() == img_b.tobytes()
assert img_a.im == img_b.im

0 comments on commit 5c874ac

Please sign in to comment.