Skip to content

Commit

Permalink
Update Tests/check_avif_leaks.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <[email protected]>
  • Loading branch information
fdintino and radarhere authored Oct 18, 2024
1 parent e5494a2 commit 8b8bbba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Tests/check_avif_leaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ def test_leak_save() -> None:
setrlimit(RLIMIT_STACK, (stack_size, stack_size))
setrlimit(RLIMIT_AS, (mem_limit, mem_limit))
for _ in range(iterations):
test_output = BytesIO()
with Image.open(test_file) as im:
im.load()
test_output = BytesIO()
im.save(test_output, "AVIF")
test_output.seek(0)
test_output.read()
test_output.seek(0)
test_output.read()

0 comments on commit 8b8bbba

Please sign in to comment.