Skip to content

Commit 1a7cc4c

Browse files
committed
Fix test_canvas_reinit.
The figure is no longer set stale because `resize` is no longer called. There's no reason the figure should be stale until it's ready to be drawn, but we don't really need a whole main loop for this test.
1 parent da078ca commit 1a7cc4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/tests/test_backend_qt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,5 @@ def crashing_callback(fig, stale):
271271
fig.stale_callback = crashing_callback
272272
# this should not raise
273273
canvas = FigureCanvasQTAgg(fig)
274+
fig.stale = True
274275
assert called

0 commit comments

Comments
 (0)