Skip to content

Commit 8b8bbba

Browse files
fdintinoradarhere
andauthored
Update Tests/check_avif_leaks.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent e5494a2 commit 8b8bbba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/check_avif_leaks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ def test_leak_save() -> None:
3636
setrlimit(RLIMIT_STACK, (stack_size, stack_size))
3737
setrlimit(RLIMIT_AS, (mem_limit, mem_limit))
3838
for _ in range(iterations):
39+
test_output = BytesIO()
3940
with Image.open(test_file) as im:
40-
im.load()
41-
test_output = BytesIO()
4241
im.save(test_output, "AVIF")
43-
test_output.seek(0)
44-
test_output.read()
42+
test_output.seek(0)
43+
test_output.read()

0 commit comments

Comments
 (0)