Skip to content

Commit 77baec5

Browse files
Check correct regex in validation test
1 parent b6e4db4 commit 77baec5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/statespace/test_statespace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,9 @@ def test_bad_forecast_arguments(use_datetime_index, caplog):
380380
time_idx = _make_time_idx(ss_mod, use_datetime_index)
381381

382382
# Start value not in time index
383-
with pytest.raises(ValueError, match="start must be in the data index used to fit the model"):
383+
with pytest.raises(
384+
ValueError, match="Integer start must be in the data index used to fit the model"
385+
):
384386
start = time_idx.shift(10)[-1] if use_datetime_index else time_idx[-1] + 11
385387
ss_mod._validate_forecast_args(time_index=time_idx, start=start, periods=10)
386388

0 commit comments

Comments
 (0)