Skip to content

Commit

Permalink
static
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 7, 2023
1 parent 86804cb commit ea97541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/test_lib_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"BGR;24",
)


@pytest.mark.parametrize("mode", mode_names)
def test_equal(mode):
num_img_bytes = len(Image.new(mode, (2, 2)).tobytes())
# alternatively, random.randbytes() in Python 3.9
data = secrets.token_bytes(num_img_bytes)
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)
assert img_a.tobytes() == img_b.tobytes()
Expand Down

0 comments on commit ea97541

Please sign in to comment.