Merge pull request #234205 from yl3dy/unbreak_fenics

python3Packages.fenics: fixed tests for FIAT
This commit is contained in:
Robert Scott 2023-05-27 13:01:25 +01:00 committed by GitHub
commit c0b553b619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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