summaryrefslogtreecommitdiff
path: root/dev-python/fpylll/files/fpylll-0.6.1-testfix.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-30 08:00:51 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-30 08:00:51 +0100
commitd5ee59790ee8298b8599b0aa0fa21a98b972a44d (patch)
tree2cc4393cdcfae28879cee110e5975f6e6b798f91 /dev-python/fpylll/files/fpylll-0.6.1-testfix.patch
parentd855918b46ba8714cf1320fe63b55fd0ed1748a6 (diff)
gentoo auto-resync : 30:06:2024 - 08:00:50
Diffstat (limited to 'dev-python/fpylll/files/fpylll-0.6.1-testfix.patch')
-rw-r--r--dev-python/fpylll/files/fpylll-0.6.1-testfix.patch24
1 files changed, 24 insertions, 0 deletions
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" <martinralbrecht@googlemail.com>
+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'