From 63856f7e35ad259d99934a403a7f058c2b27404b Mon Sep 17 00:00:00 2001 From: Jerry James Date: Jul 09 2017 02:16:52 +0000 Subject: Disable tests that fail due to overflow on some 32-bit architectures. --- diff --git a/sympy-test.patch b/sympy-test.patch new file mode 100644 index 0000000..2ce2e3a --- /dev/null +++ b/sympy-test.patch @@ -0,0 +1,27 @@ +--- sympy-sympy-1.1/sympy/core/tests/test_sympify.py.orig 2017-07-05 17:13:24.000000000 -0600 ++++ sympy-sympy-1.1/sympy/core/tests/test_sympify.py 2017-07-08 19:32:15.297900401 -0600 +@@ -560,11 +560,7 @@ def test_numpy(): + skip('numpy not installed.Abort numpy tests.') + + assert sympify(np.bool_(1)) is S(True) +- assert equal( +- sympify(np.int_(1234567891234567891)), S(1234567891234567891)) + assert equal(sympify(np.intc(1234567891)), S(1234567891)) +- assert equal( +- sympify(np.intp(1234567891234567891)), S(1234567891234567891)) + assert equal(sympify(np.int8(-123)), S(-123)) + assert equal(sympify(np.int16(-12345)), S(-12345)) + assert equal(sympify(np.int32(-1234567891)), S(-1234567891)) +@@ -587,12 +583,6 @@ def test_numpy(): + except AttributeError: #float96 does not exist on all platforms + pass + +- try: +- assert equal(sympify(np.float128(1.123456789123)), +- Float(1.123456789123, precision=80)) +- except AttributeError: #float128 does not exist on all platforms +- pass +- + + @XFAIL + def test_sympify_rational_numbers_set(): diff --git a/sympy.spec b/sympy.spec index 3ec1497..b4a792b 100644 --- a/sympy.spec +++ b/sympy.spec @@ -1,10 +1,12 @@ Name: sympy Version: 1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A Python library for symbolic mathematics License: BSD URL: http://sympy.org/ Source0: https://github.com/%{name}/%{name}/archive/%{name}-%{version}.tar.gz +# Disable tests that fail due to overflow on some 32-bit architectures +Patch0: %{name}-test.patch BuildArch: noarch @@ -92,6 +94,7 @@ HTML documentation for sympy. %prep %setup -q -c +%patch0 # Do not depend on env for fil in $(grep -rl "^#\![[:blank:]]*%{_bindir}/env" .); do @@ -233,6 +236,9 @@ popd %{_docdir}/%{name}-doc/html %changelog +* Sat Jul 8 2017 Jerry James - 1.1-2 +- Disable tests that fail due to overflow on some 32-bit architectures + * Fri Jul 7 2017 Jerry James - 1.1-1 - Update to 1.1 (bz 1468405) - All patches have been upstreamed; drop them all