From 184133e1edc535f671295cbe6080bf8c0b256446 Mon Sep 17 00:00:00 2001 From: Richard Sheridan Date: Fri, 14 Aug 2020 19:26:42 -0400 Subject: [PATCH] destroy root (and global tkinter state) before moving on --- lib/matplotlib/tests/test_backend_tk.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/tests/test_backend_tk.py b/lib/matplotlib/tests/test_backend_tk.py index 70eed6d75a81..5f34b4380be7 100644 --- a/lib/matplotlib/tests/test_backend_tk.py +++ b/lib/matplotlib/tests/test_backend_tk.py @@ -52,6 +52,7 @@ def legitimate_quit(): root = tkinter.Tk() root.after(0, do_plot) root.mainloop() + root.destroy() assert success