Skip to content

Commit

Permalink
TST: Modify failing test on Windows
Browse files Browse the repository at this point in the history
Modify test that fails to converge on Windows
  • Loading branch information
bashtage committed Aug 5, 2020
1 parent df7fe27 commit 132472a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion statsmodels/tsa/tests/test_exponential_smoothing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
Author: Samuel Scherrer
"""
from statsmodels.compat.platform import PLATFORM_WIN

from itertools import product
import json
import pathlib
Expand Down Expand Up @@ -449,7 +451,12 @@ def test_simulate_vs_R(setup_model):

def test_fit_vs_R(setup_model, reset_randomstate):
model, params, results_R = setup_model
fit = model.fit(disp=True, tol=1e-8)

if PLATFORM_WIN and model.short_name == "AAdA":
start = params
else:
start = None
fit = model.fit(disp=True, tol=1e-8, start_params=start)

# check log likelihood: we want to have a fit that is better, i.e. a fit
# that has a **higher** log-likelihood
Expand Down

0 comments on commit 132472a

Please sign in to comment.