Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1a7cc4c

Browse filesBrowse 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
Copy full SHA for 1a7cc4c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎lib/matplotlib/tests/test_backend_qt.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_qt.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.