Skip to content
Snippets Groups Projects
Commit 3f89566e authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix conftest

parent c909e6ac
No related branches found
No related tags found
1 merge request!409Migrate Test Suite
Pipeline #70056 failed
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment