Closed InCogNiTo124 closed 2 years ago
@InCogNiTo124 thanks for the report.
We are seeing the same issue in recent rebuilds of the conda packages. My guess is that something changed in recent versions of pybind11 regarding exception translation.
I'll try to work out a patch in the next couple of days.
PR is now up at #104.
@InCogNiTo124 gonna close this, thanks again for the report.
Thank you for the prompt solution :D
Describe the bug There seem to be a bug in the tests. This line expects a
RuntimeError
https://github.com/esa/pygmo2/blob/6d3a776f6f88294d22c50e18e27955df4971fd29/pygmo/_problem_test.py#L193However, a
ValueError
seems to be thrown:To Reproduce Steps to reproduce the behavior:
import pygmo
pygmo.test.run_test_suite()
Expected behavior All tests should pass
Screenshots N/A
Environment (please complete the following information):
Additional context A simple change
RuntimeError -> ValueError
will probably solve the issue