From: Debian Science Maintainers Date: Sun, 17 Jan 2021 14:02:15 +0000 (+0000) Subject: scipy_1.6_test_bytestring X-Git-Tag: archive/raspbian/0.12.1-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f414c804d3969be61b5a52a8790577e2352040ff;p=statsmodels.git scipy_1.6_test_bytestring =================================================================== Gbp-Pq: Name scipy_1.6_test_bytestring.patch --- diff --git a/statsmodels/tsa/arima/estimators/tests/test_gls.py b/statsmodels/tsa/arima/estimators/tests/test_gls.py index ad91e4a..3d73bbf 100644 --- a/statsmodels/tsa/arima/estimators/tests/test_gls.py +++ b/statsmodels/tsa/arima/estimators/tests/test_gls.py @@ -1,8 +1,10 @@ import numpy as np +import scipy import pytest from numpy.testing import ( assert_, assert_allclose, assert_equal, assert_warns, assert_raises) +from packaging import version as pkg_version from statsmodels.tsa.arima.datasets.brockwell_davis_2002 import lake, oshorts from statsmodels.tsa.arima.estimators.gls import gls @@ -203,5 +205,8 @@ def test_arma_kwargs(): _, res2_imle = gls(endog, exog=exog, order=(1, 0, 1), n_iter=1, arma_estimator_kwargs=arma_estimator_kwargs) assert_equal(res2_imle.arma_estimator_kwargs, arma_estimator_kwargs) + result_expected='CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH' + if pkg_version.parse(scipy.version.version) < pkg_version.parse('1.6'): + result_expected=bytes(result_expected, 'utf-8') assert_equal(res2_imle.arma_results[1].minimize_results.message, - b'CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH') + result_expected)