Skip to content

Commit

Permalink
No object is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Oct 16, 2024
1 parent f379754 commit 876026f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tardis/spectrum/tests/test_spectrum_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def simulation(
request.cls.regression_data = RegressionData(request)
request.cls.regression_data.sync_hdf_store(simulation)

yield simulation
request.cls.regression_data.close()
return simulation

def get_expected_data(self, key: str):
return pd.read_hdf(self.regression_data.fpath, key)
Expand Down
3 changes: 1 addition & 2 deletions tardis/tests/test_tardis_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ def simulation(
request.cls.regression_data = RegressionData(request)
request.cls.regression_data.sync_hdf_store(simulation)

yield simulation
request.cls.regression_data.close()
return simulation

def get_expected_data(self, key: str):
return pd.read_hdf(self.regression_data.fpath, key)
Expand Down

0 comments on commit 876026f

Please sign in to comment.