diff --git a/sympy.spec b/sympy.spec index 0858cba..980619e 100644 --- a/sympy.spec +++ b/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