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
pythonPackages.astropy: Disable tests #68687
Conversation
A lot of them are failing due to pytest5, I took a look at them as well. Generally these are from using |
Thanks, I'll check whether pytest4 fixes them. They're so many that I won't bother fixing them all. |
It's not easy to fix. Let's just disable them for now and wait for upstream to fix the tests. |
using pytest4 isn't an option due to having multiple version of a package in the python ecosystem (they all get loaded on to PYTHONPATH, so you can't seperate them) |
We also have multiple django and opencv versions in our package set. Also I think that this is perfectly fine if we do this for a test library: Or did you find a case I'm not aware of? :) Otherwise I'd suggest to close the PR which reverts the introduction of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried tackling this myself, but disabling seems to the be by far the easiest approach because:
- This package propagates pytest
- Another package
pytest-astropy
needs to have the same version of pytest
I say just re-enable when they support pytest5
Some of the tests in That's another reason to disable the tests for now so we can get astropy and its dependants in 19.9. |
@@ -23,7 +24,7 @@ buildPythonPackage rec { | |||
|
|||
propagatedBuildInputs = [ numpy pytest ]; # yes it really has pytest in install_requires | |||
|
|||
checkInputs = [ pytest pytest-astropy ]; | |||
checkInputs = [ pytest pytest-astropy bleach ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'me sure we need to add bleach
for the moment, since the tests are disabled anyway.
@@ -39,6 +40,9 @@ buildPythonPackage rec { | |||
pytest | |||
''; | |||
|
|||
# 368 failed, 10889 passed, 978 skipped, 69 xfailed in 196.24s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to explain why these tests fails, for later reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are a few reasons for the failure, however I'm not sure what they all are. That's why I'm unable to fix them.
It was mentioned in #68964 that there are upstream patches that could possibly fix this - it might make sense to try those instead of disabling the whole test-suite. |
It would be probably also good to link this one to ZHF: #68361 for visibility, as the other PR got closed. |
A ton of tests fail and it's not obvious to me how to fix them. Adding bleach to checkInputs fixes a tiny number of them, though.
3717fd8
to
4c714c1
Compare
Even with the mentioned patch a lot of tests fail. |
Motivation for this change
A ton of tests fail and it's not obvious to me how to fix them.
Adding bleach to checkInputs fixes a tiny number of them, though.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @KentJames