diff --git a/Tests/test_file_apng.py b/Tests/test_file_apng.py index d624bbb849c..eeac164ce73 100644 --- a/Tests/test_file_apng.py +++ b/Tests/test_file_apng.py @@ -337,9 +337,9 @@ def open(): "sequence_fdat_fctl.png", ), ) -def test_apng_sequence_errors(f): +def test_apng_sequence_errors(test_file): with pytest.raises(SyntaxError): - with Image.open(f"Tests/images/apng/{f}") as im: + with Image.open(f"Tests/images/apng/{test_file}") as im: im.seek(im.n_frames - 1) im.load()