NameError raised in tests is not caught, hence test crash if no GPU code is compiled
paskino opened this issue · 1 comments
paskino commented
These lines raise a NameError
rather than ValueError
.
https://github.com/vais-ral/CCPi-Regularisation-Toolkit/blob/fc67dc0db27807d4964af7b83f8ce4460abd9324/test/test_run_test.py#L73
All tests crash, see for instance https://github.com/SyneRBI/SIRF-SuperBuild/actions/runs/5073437582/jobs/9112456133?pr=813#step:10:986
paskino commented
However these should be protected by
https://github.com/vais-ral/CCPi-Regularisation-Toolkit/blob/fc67dc0db27807d4964af7b83f8ce4460abd9324/test/test_run_test.py#L7-L10
and the use of https://github.com/vais-ral/CCPi-Regularisation-Toolkit/blob/fc67dc0db27807d4964af7b83f8ce4460abd9324/test/test_run_test.py#L15