esa / pygmo2

A Python platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model.
https://esa.github.io/pygmo2/
Mozilla Public License 2.0
414 stars 56 forks source link

[BUG] Test code should not assume networkx is installed #120

Open bluescarni opened 1 year ago

bluescarni commented 1 year ago

Describe the bug The test suite assumes that networkx is installed, although networkx is not a mandatory dependency for pygmo.

To Reproduce Install pygmo and run the test suite without installing networkx.

Expected behavior The test suite should just skip the tests using networkx, if networkx is not installed.