Skip to content

test_arima testing the wrong thing #4325

Closed

Description

@jbrockmendel

https://github.com/statsmodels/statsmodels/blob/master/statsmodels/tsa/tests/test_arima.py#L1815

def test_bad_start_params():
    [...]
    mod = ARMA(endog, (15, 0))
    assert_raises(ValueError, mod.fit)

    inv = load_macrodata().data['realinv']
    arima_mod = ARIMA(np.log(inv), (1,1,2))
    assert_raises(ValueError, mod.fit)

I'm pretty sure that last line is supposed to have arima_mod.fit instead of re-testing mod.fit.

Can we please have a concerted code-quality/cleanup Topic Week?

Activity

  1. added 2 commits that reference this issue on Sep 10, 2018
    979c45b
    920ba41
  2. added a commit that references this issue on Sep 23, 2018
    50023a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions