MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_exhausted_animation

Function test_exhausted_animation

lib/matplotlib/tests/test_animation.py:411–425  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

409
410
411def test_exhausted_animation(tmp_path):
412 fig, ax = plt.subplots()
413
414 def update(frame):
415 return []
416
417 anim = animation.FuncAnimation(
418 fig, update, frames=iter(range(10)), repeat=False,
419 cache_frame_data=False
420 )
421
422 anim.save(tmp_path / "test.gif", writer='pillow')
423
424 with pytest.warns(UserWarning, match="exhausted"):
425 anim._start()
426
427
428def test_no_frame_warning():

Callers

nothing calls this directly

Calls 3

saveMethod · 0.80
_startMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…