diff --git a/tardis/tests/fixtures/regression_data.py b/tardis/tests/fixtures/regression_data.py index 455eb66fe75..f25aa86d96b 100644 --- a/tardis/tests/fixtures/regression_data.py +++ b/tardis/tests/fixtures/regression_data.py @@ -171,5 +171,5 @@ def sync_hdf_store(self, tardis_module, update_fname=True): def regression_data(request): regression_data_instance = RegressionData(request) yield regression_data_instance - if regression_data_instance.hdf_store_object.is_open: + if regression_data_instance.hdf_store_object is not None and regression_data_instance.hdf_store_object.is_open: regression_data_instance.hdf_store_object.close()