Skip to content

Commit

Permalink
Fix expected error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Dec 9, 2024
1 parent 7c01da8 commit e741b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,13 +566,13 @@ def test_timeseries_wide_unsorted(test_pd_df):
def test_timeseries_empty_raises(test_df_year):
"""Calling `timeseries()` on an empty IamDataFrame raises"""
_df = test_df_year.filter(model="foo")
with pytest.raises(ValueError, match="This IamDataFrame is empty!"):
with pytest.raises(ValueError, match="This IamDataFrame is empty."):
_df.timeseries()


def test_timeseries_time_iamc_raises(test_df_time):
"""Calling `timeseries(iamc_index=True)` on a continuous-time IamDataFrame raises"""
match = "Cannot use `iamc_index=True` with 'datetime' time-domain!"
match = "Cannot use `iamc_index=True` with 'datetime' time-domain."
with pytest.raises(ValueError, match=match):
test_df_time.timeseries(iamc_index=True)

Expand Down

0 comments on commit e741b57

Please sign in to comment.