From 9a6609c4589330752f31bea0536b51090d354ce3 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sat, 20 Jun 2015 20:48:39 -0600 Subject: [PATCH] Test fix for python 3 now needed for python 2 also. --- sympy.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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