Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: fix incorrect TypeError --> ValueError #5194

Merged
merged 2 commits into from
Sep 15, 2018

Conversation

jbrockmendel
Copy link
Contributor

No description provided.

@bashtage
Copy link
Member

Aside from needing to fix the test, these all look right to me.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 83.982% when pulling 629f577 on jbrockmendel:typerrors into 359aeed on statsmodels:master.

@jbrockmendel
Copy link
Contributor Author

Test fixed, CI fail is false-positive from coveralls.

@jbrockmendel
Copy link
Contributor Author

@josef-pkt appveyor fail is in corrpsd, this is de facto green.

@jbrockmendel
Copy link
Contributor Author

@josef-pkt green, i think this is the last of these

@@ -653,7 +654,9 @@ def test_lagmat2ds_use_pandas(self):

def test_3d_error(self):
data = np.array(2)
assert_raises(TypeError, sm.tsa.lagmat2ds, data, 5)
with pytest.raises(ValueError):
sm.tsa.lagmat2ds(data, 5)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you change this?
This looks completley unrelated to the rest of the PR and the description of the PR.

And in general I still prefer numpy testing to pytest

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TypeError needed to be changed to ValueError. While I was at it I changed it to use the modern context syntax.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, this is not my "usual" neighborhood anymore, so ok with me

@josef-pkt josef-pkt merged commit 97bba85 into statsmodels:master Sep 15, 2018
@jbrockmendel jbrockmendel deleted the typerrors branch September 15, 2018 16:40
@jbrockmendel
Copy link
Contributor Author

Well done sir. I think #5192 is the last one in this genre at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants