-
Notifications
You must be signed in to change notification settings - Fork 39
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 error that occurs when using pytest=3.7 #22
Comments
A bit of investigation has led me to believe that this issue has been fixed in the development version of |
pytest 3.7.2 is out, so now at least the tests are run, but we have tons of failures. |
|
With Python 3.7 and pytest 3.7.3 and astropy/astropy#7779 applied the Astropy tests pass for me if I don't have pytest-astropy installed. After installing it, there's a ton of errors. These:
and then a gadzillion of those:
https://gist.github.com/cdeil/36ebd9882e73a3b3dd1b8d94f1798f5b |
cc @drdavella |
This error in particular:
Is a regression on OS-X which will be fixed in The other seems to be that some file is importing from astropy.tests import pytest_plugins Problem is that Unfortunately at the moment it raises that quite cryptic error. A quick fix is to rename the import: from astropy.tests import pytest_plugins as plugins |
There's one more error that looks like an issue that should be fixed in Astropy I think; for that I've opened astropy/astropy#7780 . |
Thanks @nicoddemus! So it seems like no action is required as far as I guess the choice of name for |
Actually pytest will look for I see that the astropy.tests.pytest_plugins has been deprecated for 10 months now in favor of |
Ah yes... I believe I actually was the one responsible for that deprecation for just those reasons (how soon we forget!). In fact, I opened an issue in pytest (here: pytest-dev/pytest#2891) because this warning does not show up for users who import through @bsipocz, @astrofrog maybe we should discuss on Astropy proper, but do you have any thoughts about accelerating the deprecation of this? |
I see these warnings from Gammapy. Is there an explanation or astropy-dev or astropy-affiliated-maintainers mailing list post that explains what this is and what I should do to update in my Astropy affiliated packages? After this change will it still work with oder Astropy and pytest versions, i.e. is it possible to do this upgrade in a sane way? |
@cdeil there is a bit of documentation here, but if it's not actually helpful then I can make some updates. I can also look at The required changes should be compatible with any version of |
@drdavella - I'm usually one of the most liberal maintainers in terms of deprecations/removal times, so you better open an issue in astropy proper and ask there. One project idea for dotastro I had was related to digging up usage info for deprecated functionality and set up a notification system for package maintainers. But now I don't think this sprint will happen before the coordination meeting. |
Closing since this resolved itself on the pytest side. |
We first encountered a different problem when
pytest-3.7.0
was released, and that was reported upstream (see pytest-dev/pytest#3742). They released a patch in3.7.1
, but that is what is causing this issue (see pytest-dev/pytest#3751).The recommended solution for the time being is to use
pytest==3.6
.The text was updated successfully, but these errors were encountered: