remove unnecessary code and use `with pytest.warns()`
remove unnecessary code and use `with pytest.warns()`

alkaline-ml/pmdarima,alkaline-ml/pmdarima,alkaline-ml/pmdarima,tgsmith61591/pyramid,tgsmith61591/pyramid,tgsmith61591/pyramid