From 3f89566e4027a48404faa609209a9b93ae8a84c9 Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Wed, 6 Nov 2024 11:11:18 +0100
Subject: [PATCH] fix conftest

---
 conftest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/conftest.py b/conftest.py
index b021f8c29..0c6c49153 100644
--- a/conftest.py
+++ b/conftest.py
@@ -147,7 +147,7 @@ class IPyNbTest(pytest.Item):
         # plot is created. This warning is suppressed here
         exec(
             "import warnings;"
-            "warnings.filterwarnings('ignore', 'Adding an axes using the same arguments as a previous.*')"
+            "warnings.filterwarnings('ignore', 'Adding an axes using the same arguments as a previous.*');"
             "warnings.filterwarnings('ignore', 'Animation was deleted without rendering anything.*');",
             global_dict,
         )
@@ -157,7 +157,7 @@ class IPyNbTest(pytest.Item):
             runpy.run_path(f.name, init_globals=global_dict, run_name=self.name)
 
         #   Close any open figures
-        exec("import matplotlib.pyplot as p; " "p.close('all')", global_dict)
+        exec("import matplotlib.pyplot as p; p.close('all')", global_dict)
 
 
 class IPyNbFile(pytest.File):
-- 
GitLab