Skip to content

Some tests require numpy and fail if not present #4529

Description

@bnavigator

For reason's briefly discussed in dask/dask#7170 (comment), openSUSE does not have numpy for Python 3.6 in the Tumbleweed distribution anymore. At the same time, we need to have a working test suite to make sure that the built package works (without numpy functionality of course.)

Most tests of distributed involving (runtime optional) numpy are already skipped automatically if numpy is not present. But there are some ERRORs and FAILs:

[  150s] FAILED distributed/tests/test_client.py::test_turn_off_pickle[True] - ModuleN...
[  150s] FAILED distributed/tests/test_client.py::test_turn_off_pickle[False] - Module...
[  150s] FAILED distributed/tests/test_client.py::test_de_serialization - ModuleNotFou...
[  150s] FAILED distributed/tests/test_client.py::test_de_serialization_none - ModuleN...
[  150s] FAILED distributed/tests/test_pubsub.py::test_speed - ModuleNotFoundError: No...
[  150s] ERROR distributed/tests/test_nanny.py
[  150s] ERROR distributed/tests/test_utils.py

I am using this ad-hoc patch right now. It might need some polishing to meet your code standards:

importorskip-numpy-tests.patch.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions