1ead4fe94cc00561467641317befbc26a594933a,pmdarima/arima/tests/test_arima.py,,test_more_elaborate,#,398

Before Change


    assert_array_almost_equal(_preds, _other_preds)

    // now remove the pickle file
    os.unlink(fl)

    // now show that since we fit the ARIMA with an exogenous array,
    // we need to provide one for predictions otherwise it breaks.
    with pytest.raises(ValueError):

After Change


        // pickle this for the __get/setattr__ coverage.
        // since the only time this is tested is in parallel in auto.py,
        // this doesn"t actually get any coverage proof...
        fl = os.path.join(tdir, "some_temp_file.pkl")
        with open(fl, "wb") as p:
            pickle.dump(arima, p)

        // show we can predict with this even though it"s been pickled
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tgsmith61591/pmdarima
Commit Name: 1ead4fe94cc00561467641317befbc26a594933a
Time: 2020-07-13
Author: tgsmith61591@gmail.com
File Name: pmdarima/arima/tests/test_arima.py
Class Name:
Method Name: test_more_elaborate


Project Name: EducationalTestingService/skll
Commit Name: 2cf07cbc4b9ca699f53ba6e25dd4b828e01788a3
Time: 2019-10-22
Author: nmadnani@ets.org
File Name: tests/test_input.py
Class Name:
Method Name: tearDown


Project Name: EducationalTestingService/skll
Commit Name: 7a70cd41ed1099ea03697939f398528231b48908
Time: 2018-12-04
Author: nmadnani@ets.org
File Name: tests/test_featureset.py
Class Name:
Method Name: tearDown