diff --git a/conftest.py b/conftest.py index b021f8c29615c8ef7c364f78289f050e62b5abfc..0c6c49153770bc40c90cb09e990d12561f7bad7a 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):