Skip to content
Snippets Groups Projects

Explicitly close figures to avoid racking up memory

Merged Tobias Hangleiter requested to merge enh/close_figures_in_tests into main
2 files
+ 34
29
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
0
@@ -134,6 +134,8 @@ def started(spectrometer, plot_timetrace, in_process, in_gitlab_ci):
for view in views:
view.process.terminate()
plt.close(spectrometer.fig)
@pytest.fixture
def stopped(started: list[LiveViewT], in_process: bool):
Loading