-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
skip numpy and pandas tests if not importable #4563
Conversation
0601319
to
caa4154
Compare
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.
Thanks for handling this @bnavigator!
import pytest | ||
from tlz import identity | ||
|
||
np = pytest.importorskip("numpy") |
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.
Most tests in this module don't use NumPy and it'd be good to run them even when NumPy isn't installed. Could you isolate the importorskip
behavior specifically to tests which need NumPy like you've done in some other test modules?
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.
Not possible, because numpy is used at parametrization of tests, i.e. during test collection of the module.
If done right, it's possible. Done in c0552f9
Also when you have a chance, could you please merge |
caa4154
to
7143207
Compare
7143207
to
c0552f9
Compare
Rebased. |
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.
More black errors
Aw c'mon! Does the CI ever pass? |
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.
Thanks @bnavigator!
Here is our current list of flaky tests. Any help you're able to provide towards improving them is welcome.
black distributed
/flake8 distributed