diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py index c40e5f6b0..70438eb03 100644 --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -93,7 +93,7 @@ class TestFileGif(PillowTestCase): im.save(out, save_all=True) reread = Image.open(out) - self.assertEqual(im.n_frames, 5) + self.assertEqual(reread.n_frames, 5) def test_palette_handling(self): # see https://github.com/python-pillow/Pillow/issues/513