-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Remove deprecated call to astropy helpers. #554
Conversation
To retain the functionality you are removing here, you need to change Line 44 in cb9517e
to turn warning into exceptions using https://docs.pytest.org/en/stable/how-to/capture-warnings.html |
Now I'm confused why this wasn't working before. Currently passing PRs show deprecations as warnings rather than raising actual exceptions. |
The pytest way is probably more sensitive than what |
You should probably drop Python 3.7. It is picking up a very old |
@bmorris3 I was going to make the same recommendation. End of life for Edit: The test matrix in general could probably use some updating as it specifies older astropy versions specifically in addition to python 3.7. The |
Hey @bmorris3, this PR properly turns on the deprecations as exceptions via pytest, which replaces the functionality that was supposed to be working with It's up to you if that should be in the repo but adding it in shows a bunch of other deprecations that should probably be dealt with soon (hence the follow-up issues about python 3.7, etc), so it's arguably nice to retain that functionality. |
Removes the function call and defaults to pytest just showing the warning at end of test run. Thanks @pllim for pointing out.
Edit: Astropy issue here astropy/astropy#9718 and PR astropy/astropy#14670
Closes #553
P.S. I feel like there is some kind of meta irony in us not noticing this was deprecated...