Add -mpfr410 patch to fix tests with MPFR 4.1.0.
This commit is contained in:
parent
5e833a54a0
commit
af67de0983
|
@ -0,0 +1,11 @@
|
|||
--- a/test/test_gmpy2_format.txt
|
||||
+++ b/test/test_gmpy2_format.txt
|
||||
@@ -155,7 +155,7 @@ ValueError: Invalid conversion specifica
|
||||
>>> c.__format__('a')
|
||||
'0x5.5555555555554p-4+0x5p+0j'
|
||||
>>> c.__format__('e')
|
||||
-'3.3333333333333331e-01+5e+00j'
|
||||
+'3.3333333333333331e-01+5.0000000000000000e+00j'
|
||||
>>> mpc(-1.0, -2.0).__format__('M')
|
||||
'(-1.000000 -2.000000)'
|
||||
|
|
@ -14,6 +14,8 @@ Patch0: %{name}-factorial-32bit.patch
|
|||
# Fix a problem with reading the rounding mode on big endian systems
|
||||
# https://github.com/aleaxit/gmpy/issues/276
|
||||
Patch1: %{name}-endian.patch
|
||||
# Adapt to MPFR 4.1.0 output changes
|
||||
Patch2: %{name}-mpfr410.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gmp-devel
|
||||
|
@ -50,6 +52,7 @@ Provides: bundled(jquery)
|
|||
%patch0 -p1
|
||||
%endif
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
# Update the sphinx theme name
|
||||
sed -i "s/'default'/'classic'/" docs/conf.py
|
||||
|
|
Loading…
Reference in New Issue