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

Fix pytest.raises usage for pytest 5 #289

Merged
merged 1 commit into from Jul 2, 2019
Merged

Conversation

cdeil
Copy link
Member

@cdeil cdeil commented Jul 2, 2019

This PR fixes #288, i.e. the pytest.raises related fails that appeared with the pytest 5 release.

I have changed from err or exc to expinfo to make it clear(er) that it's an an ExceptionInfo object, not an Exception object. This is following the variable name pytest uses in its docs: https://docs.pytest.org/en/latest/assert.html#assertions-about-expected-exceptions

@bsipocz - I would suggest to revert #287 for now, and only then merge this in. Assigning to you.

@bsipocz bsipocz merged commit ffdf4d4 into astropy:master Jul 2, 2019
@bsipocz
Copy link
Member

bsipocz commented Jul 2, 2019

Thanks @cdeil!

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.

pytest 5.0 related CI failures
2 participants