8000 Add test for close_event. by anntzer · Pull Request #16917 · matplotlib/matplotlib · GitHub