python3Packages.fenics: fixed tests for FIAT

This commit is contained in:
Alexander Kiselyov 2023-05-26 13:18:24 +03:00
parent 1848a45ab9
commit 3579ce8c72

View file

@ -73,6 +73,12 @@ let
rm test/unit/test_quadrature.py
rm test/unit/test_reference_element.py
rm test/unit/test_fiat.py
# Fix `np.float` deprecation in Numpy 1.20
grep -lr 'np.float(' test/ | while read -r fn; do
substituteInPlace "$fn" \
--replace "np.float(" "np.float64("
done
'';
checkPhase = ''
runHook preCheck