8000 TST: spin the event loop · matplotlib/matplotlib@5f2bcbb · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f2bcbb

Browse files
committed
TST: spin the event loop
This makes sure the GUI framework has a chance to run the end-of-life cycles to clean up any closed/deleted but not yet fully destroyed objects.
1 parent 55c53f9 commit 5f2bcbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/memleak.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def __call__(self):
113113
ax.pcolor(10 * np.random.rand(50, 50))
114114

115115
fig.savefig(BytesIO(), dpi=75)
116+
fig.canvas.flush_events()
116117
plt.close(1)
117118

118119

0 commit comments

Comments
 (0)
0