Test that memory can be garbage collected properly.
(raw, pg_backend)
| 1324 | |
| 1325 | @pytest.mark.pgtest |
| 1326 | def test_plotting_memory_garbage_collection(raw, pg_backend): |
| 1327 | """Test that memory can be garbage collected properly.""" |
| 1328 | pytest.importorskip("mne_qt_browser", minversion="0.4") |
| 1329 | raw.plot().close() |
| 1330 | import mne_qt_browser |
| 1331 | from mne_qt_browser._pg_figure import MNEQtBrowser |
| 1332 | |
| 1333 | assert len(mne_qt_browser._browser_instances) == 0 |
| 1334 | _assert_no_instances(MNEQtBrowser, "after closing") |
| 1335 | |
| 1336 | |
| 1337 | def test_plotting_scalebars(browser_backend, qtbot): |
nothing calls this directly
no test coverage detected