[sagemath] 01/01: Fix doctest in rings/integer.pyx on 32-bit architectures.

Tobias Hansen thansen at moszumanska.debian.org
Sun Oct 1 10:36:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository sagemath.

commit b4a9e50fa236032ff84eded60cde340cdb45d313
Author: Tobias Hansen <thansen at debian.org>
Date:   Sun Oct 1 11:35:51 2017 +0100

    Fix doctest in rings/integer.pyx on 32-bit architectures.
---
 debian/patches/u2-fix-less-trivial-test-cases.patch | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/patches/u2-fix-less-trivial-test-cases.patch b/debian/patches/u2-fix-less-trivial-test-cases.patch
index 9e2699b..d7f2882 100644
--- a/debian/patches/u2-fix-less-trivial-test-cases.patch
+++ b/debian/patches/u2-fix-less-trivial-test-cases.patch
@@ -7,15 +7,15 @@ Forwarded: TODO
 src/sage/rings/integer.pyx
 Sage upstream expects MPIR's error output but we use GMP.
 They know about this difference and advise us to just override it.
+On 32-bit the error does not change.
 --- a/sage/src/sage/rings/integer.pyx
 +++ b/sage/src/sage/rings/integer.pyx
-@@ -6093,8 +6093,7 @@
+@@ -6093,7 +6093,7 @@
              sage: 1 << (2^60)
              Traceback (most recent call last):
              ...
 -            MemoryError: failed to allocate ... bytes   # 64-bit
--            OverflowError: ...                          # 32-bit
-+            RuntimeError: Aborted
++            RuntimeError: Aborted                       # 64-bit
+             OverflowError: ...                          # 32-bit
          """
          cdef long n
- 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list