Skip to content

Commit ca858b7

Browse files
committed
BUG: Fix animation test
Lack of saving the animation caused it to never run the callbacks.
1 parent 3227ed1 commit ca858b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def animate(i):
162162

163163
anim = animation.FuncAnimation(fig, animate, init_func=init,
164164
frames=iter(range(5)))
165+
writer = NullMovieWriter()
166+
anim.save('unused.null', writer=writer)
165167

166168

167169
def test_movie_writer_registry():

0 commit comments

Comments
 (0)