()
| 426 | |
| 427 | |
| 428 | def 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() |