()
| 160 | @pytest.mark.flaky(reruns=3) |
| 161 | @_isolated_tk_test(success_count=0) |
| 162 | def test_never_update(): |
| 163 | import tkinter |
| 164 | del tkinter.Misc.update |
| 165 | del tkinter.Misc.update_idletasks |
| 166 | |
| 167 | import matplotlib.pyplot as plt |
| 168 | fig = plt.figure() |
| 169 | plt.show(block=False) |
| 170 | |
| 171 | plt.draw() # Test FigureCanvasTkAgg. |
| 172 | tool = fig.canvas.toolbar.configure_subplots() # Test NavigationToolbar2Tk. |
| 173 | assert tool is not None |
| 174 | assert tool == fig.canvas.toolbar.configure_subplots() # Tool is reused internally. |
| 175 | # Test FigureCanvasTk filter_destroy callback |
| 176 | fig.canvas.get_tk_widget().after(100, plt.close, fig) |
| 177 | |
| 178 | # Check for update() or update_idletasks() in the event queue, functionally |
| 179 | # equivalent to tkinter.Misc.update. |
| 180 | plt.show(block=True) |
| 181 | |
| 182 | # Note that exceptions would be printed to stderr; _isolated_tk_test |
| 183 | # checks them. |
| 184 | |
| 185 | |
| 186 | @_isolated_tk_test(success_count=2) |
nothing calls this directly
no test coverage detected
searching dependent graphs…