[Debian-med-packaging] Bug#1028291: dipy FTBFS with numpy 1.24
Adrian Bunk
bunk at debian.org
Mon Jan 9 10:05:52 GMT 2023
Source: dipy
Version: 1.5.0-4
Severity: serious
Tags: ftbfs patch
Forwarded: https://github.com/dipy/dipy/pull/2700
https://buildd.debian.org/status/fetch.php?pkg=dipy&arch=amd64&ver=1.5.0-5&stamp=1673232202&raw=0
...
=================================== FAILURES ===================================
______________________________ test_optional_str _______________________________
def test_optional_str():
# Test optional and variable str argument exists but does not have a value
sys.argv = [sys.argv[0]]
inputs = ['--optional_str_1']
sys.argv.extend(inputs)
parser = IntrospectiveArgumentParser()
dummy_flow = DummyWorkflowOptionalStr()
parser.add_workflow(dummy_flow)
args = parser.get_flow_args()
all_keys = ['optional_str_1']
all_results = [[]]
# Test if types and order are respected
for k, v in zip(all_keys, all_results):
npt.assert_equal(args[k], v)
# Test if **args really fits dummy_flow's arguments
return_values = dummy_flow.run(**args)
> npt.assert_array_equal(return_values, all_results + ['default'])
dipy/workflows/tests/test_iap.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<built-in function eq>, ([], 'default'), [[], 'default'])
kwds = {'err_msg': '', 'header': 'Arrays are not equal', 'strict': False, 'verbose': True}
@wraps(func)
def inner(*args, **kwds):
with self._recreate_cm():
> return func(*args, **kwds)
E ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
/usr/lib/python3.10/contextlib.py:79: ValueError
...
=========================== short test summary info ============================
FAILED dipy/workflows/tests/test_iap.py::test_optional_str - ValueError: sett...
====== 1 failed, 764 passed, 94 skipped, 37 warnings in 804.92s (0:13:24) ======
make[1]: *** [debian/rules:59: override_dh_auto_install] Error 1
More information about the Debian-med-packaging
mailing list