8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b55df commit 34d7183Copy full SHA for 34d7183
lib/matplotlib/tests/test_backends_interactive.py
@@ -508,6 +508,7 @@ def test_blitting_events(env):
508
# The source of this function gets extracted and run in another process, so it
509
# must be fully self-contained.
510
def _test_figure_leak():
511
+ import gc
512
import sys
513
514
import psutil
@@ -523,12 +524,14 @@ def _test_figure_leak():
523
524
plt.pause(t)
525
plt.close(fig)
526
mem = p.memory_info().rss
527
+ gc.collect()
528
529
for _ in range(5):
530
fig = plt.figure()
531
if t:
532
533
534
535
growth = p.memory_info().rss - mem
536
537
print(growth)
0 commit comments