From 44f30c77475859b75d84339319c0fd8d650df384 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sun, 24 Jul 2016 10:21:35 -0600 Subject: [PATCH] On 32-bit systems, disable a test that requires 64 bit integers. --- sympy.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sympy.spec b/sympy.spec index b412ca5..b650f0a 100644 --- a/sympy.spec +++ b/sympy.spec @@ -99,6 +99,12 @@ done # The classic sphinx theme is explicitly needed. sed -i "/html_style/ahtml_theme = 'classic'" %{sympydir}/doc/src/conf.py +# If running on a 32-bit system, disable a test that requires 64-bit integers. +%global maxpyint %(python3 -c 'import sys;print("%x" % sys.maxsize')) +if [ "%{maxpyint}" = "7fffffff" ]; then + sed -i '/issue 6393/,/assert b == -d/d' sympy/polys/tests/test_rootoftools.py +fi + # Make a copy for building the python3 version cp -a %{sympydir} python3