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

Function test_no_frame_warning

lib/matplotlib/tests/test_animation.py:428–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

426
427
428def test_no_frame_warning():
429 fig, ax = plt.subplots()
430
431 def update(frame):
432 return []
433
434 anim = animation.FuncAnimation(
435 fig, update, frames=[], repeat=False,
436 cache_frame_data=False
437 )
438
439 with pytest.warns(UserWarning, match="exhausted"):
440 anim._start()
441
442
443@check_figures_equal()

Callers

nothing calls this directly

Calls 2

_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…