Test fix for python 3 now needed for python 2 also.
This commit is contained in:
parent
8df88922d9
commit
9a6609c458
14
sympy.spec
14
sympy.spec
@ -87,17 +87,17 @@ HTML documentation for sympy.
|
||||
rm -rf sympy/mpmath doc/src/modules/mpmath
|
||||
rm -rf %{name}-%{version}/sympy/mpmath %{name}-%{version}/doc/src/module/mpmath
|
||||
|
||||
# One plotting test expects one warning, but the same warning is triggered in
|
||||
# a different spot with recent versions of python, leading to an assertion
|
||||
# failure.
|
||||
sed -e '/import warnings/ifrom sympy.utilities.pytest import XFAIL' \
|
||||
-e '/^def test_matplotlib():/i@XFAIL' \
|
||||
-i sympy/plotting/tests/test_plot_implicit.py
|
||||
|
||||
# Make a copy for building the python3 version
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
|
||||
# One plotting test expects one warning, which happens with python < 3.4, but
|
||||
# the same warning is triggered in a different spot with python 3.4, leading
|
||||
# to an assertion failure.
|
||||
sed -e '/import warnings/ifrom sympy.utilities.pytest import XFAIL' \
|
||||
-e '/^def test_matplotlib():/i@XFAIL' \
|
||||
-i %{py3dir}/sympy/plotting/tests/test_plot_implicit.py
|
||||
|
||||
%build
|
||||
# Build the python2 version
|
||||
python2 setup.py build
|
||||
|
Loading…
x
Reference in New Issue
Block a user