Fix two broken tests that cause FTBFS.
This commit is contained in:
parent
d3f3fa398b
commit
46118a3192
@ -109,9 +109,16 @@ if [ "%{maxpyint}" = "7fffffff" ]; then
|
||||
%{sympydir}/sympy/polys/tests/test_rootoftools.py
|
||||
fi
|
||||
|
||||
# Allow building with a numpy that has a release candidate version number
|
||||
sed -i 's/StrictVersion/LooseVersion/g' %{sympydir}/sympy/external/importtools.py
|
||||
|
||||
# Make a copy for building the python3 version
|
||||
cp -a %{sympydir} python3
|
||||
|
||||
# One test gets an extra warning with python3
|
||||
sed -i '/Adaptive meshing could not be applied/d' \
|
||||
python3/sympy/plotting/tests/test_plot_implicit.py
|
||||
|
||||
# Do not depend on env
|
||||
for fil in $(grep -rl "^#\![[:blank:]]*%{_bindir}/env" %{sympydir}); do
|
||||
sed -i.orig 's,^\(#\![[:blank:]]*%{_bindir}/\)env python,\1python2,' $fil
|
||||
|
Loading…
Reference in New Issue
Block a user