commit:     7d391e3c523191656854b64d54afae1a43ba771b
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 29 14:17:03 2024 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Jun 29 14:25:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d391e3c

dev-python/fpylll: upstream patch to fix a bad test

Closes: https://bugs.gentoo.org/928409
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 dev-python/fpylll/files/fpylll-0.6.1-testfix.patch | 24 ++++++++++++++++++++++
 dev-python/fpylll/fpylll-0.6.1.ebuild              |  2 ++
 2 files changed, 26 insertions(+)

diff --git a/dev-python/fpylll/files/fpylll-0.6.1-testfix.patch 
b/dev-python/fpylll/files/fpylll-0.6.1-testfix.patch
new file mode 100644
index 000000000000..4160fef6cf84
--- /dev/null
+++ b/dev-python/fpylll/files/fpylll-0.6.1-testfix.patch
@@ -0,0 +1,24 @@
+From fc432b21fa7e4b9891f5b761b3539989eb958f2b Mon Sep 17 00:00:00 2001
+From: "Martin R. Albrecht" <[email protected]>
+Date: Sun, 28 Jan 2024 17:19:42 +0000
+Subject: [PATCH] we are not testing this code here
+
+avoids side-effects from doctest order
+---
+ src/fpylll/fplll/gso.pyx | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/fpylll/fplll/gso.pyx b/src/fpylll/fplll/gso.pyx
+index 3879f29b..e42a00b2 100644
+--- a/src/fpylll/fplll/gso.pyx
++++ b/src/fpylll/fplll/gso.pyx
+@@ -568,8 +568,7 @@ cdef class MatGSO:
+         >>> M = GSO.Mat(A)
+         >>> M.float_type
+         'double'
+-        >>> FPLLL.set_precision(100)
+-        53
++        >>> _ = FPLLL.set_precision(100)
+         >>> M = GSO.Mat(A, float_type='mpfr')
+         >>> M.float_type
+         'mpfr'

diff --git a/dev-python/fpylll/fpylll-0.6.1.ebuild 
b/dev-python/fpylll/fpylll-0.6.1.ebuild
index 28d1dba4aa06..c0729e05aaed 100644
--- a/dev-python/fpylll/fpylll-0.6.1.ebuild
+++ b/dev-python/fpylll/fpylll-0.6.1.ebuild
@@ -33,6 +33,8 @@ BDEPEND="
        >=dev-python/cython-3[${PYTHON_USEDEP}]
 "
 
+PATCHES=( "${FILESDIR}/${P}-testfix.patch" )
+
 distutils_enable_tests pytest
 
 python_test(){

Reply via email to