From 83ba76e570288e761beb74a39583416ff27861e8 Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Mon, 22 Jul 2024 13:40:25 +0200
Subject: [PATCH] be more aggressive about closing figures

---
 conftest.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/conftest.py b/conftest.py
index c989bd81..6593418f 100644
--- a/conftest.py
+++ b/conftest.py
@@ -107,6 +107,7 @@ class IPyNbTest(pytest.Item):
 
         # disable matplotlib output
         exec("import matplotlib.pyplot as p; "
+             "p.close('all'); "
              "p.switch_backend('Template')", global_dict)
 
         # in notebooks there is an implicit plt.show() - if this is not called a warning is shown when the next
-- 
GitLab