Skip to content

Commit

Permalink
Test lists and tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 31, 2022
1 parent 871db1b commit 2d1ddca
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 91 deletions.
12 changes: 7 additions & 5 deletions Tests/check_jpeg_leaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@ def test_qtables_leak():
)
]

qtables = (standard_l_qtable, standard_chrominance_qtable)

for _ in range(iterations):
test_output = BytesIO()
im.save(test_output, "JPEG", qtables=qtables)
for qtables in (
(standard_l_qtable, standard_chrominance_qtable),
[standard_l_qtable, standard_chrominance_qtable],
):
for _ in range(iterations):
test_output = BytesIO()
im.save(test_output, "JPEG", qtables=qtables)


def test_exif_leak():
Expand Down
Loading

0 comments on commit 2d1ddca

Please sign in to comment.