Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 880c6c5

Browse files
pause for a short time rather than sneaky update
start_event_loop semantics are equivalent to update with timeout < 0.001
1 parent c53570d commit 880c6c5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,5 +207,4 @@ def test_never_update(monkeypatch):
207207
plt.show(block=False)
208208
fig = plt.gcf()
209209
fig.canvas.toolbar.configure_subplots()
210-
# skirt monkeypatch
211-
tkinter._default_root.tk.call('update')
210+
plt.pause(1e-9)

0 commit comments

Comments
 (0)