[sagemath] 08/13: Patch two test cases where equivalent expressions were shown differently.

Tobias Hansen thansen at moszumanska.debian.org
Sun Oct 15 19:18:56 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 8c0165ff3e115b30e13cd786c617222c1c672f30
Author: Tobias Hansen <thansen at debian.org>
Date:   Sun Oct 15 14:48:44 2017 +0000

    Patch two test cases where equivalent expressions were shown differently.
---
 debian/changelog                                   |  2 +-
 debian/patches/series                              |  1 +
 .../patches/u2-fix-less-trivial-test-cases.patch   | 33 ++++++++++++++++++++++
 3 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c6b9dec..db59d3b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,11 +11,11 @@ sagemath (8.1~beta7-1) UNRELEASED; urgency=medium
     - u0-version-sphinx-1.6.patch                #23023
     - u1-pip-nowarn.patch                        #21835
     - u1-more-sphinx-1.5-fixes.patch             #23364
-    - u2-fix-less-trivial-test-cases.patch
     - d0-cython-sys-path.patch (not deleted yet, test first)
     - df-silence_debian_bug_780186.patch
   * Patches with non-trivial modifications:
     - u2-allow-override-sage-local.patch
+    - u2-fix-less-trivial-test-cases.patch
     - d0-paths.patch
   * New patches:
     - u0-version-pynac-0.7.12.patch
diff --git a/debian/patches/series b/debian/patches/series
index 46d8b9f..4b294dc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -18,6 +18,7 @@ u2-pari-stackwarn.patch                    #23263
 u2-version-cddlib-094h.patch
 u2-reproducible-docs.patch
 u2-fix-trivial-test-cases.patch
+u2-fix-less-trivial-test-cases.patch
 u2-fix-sympow-cachedir.patch
 u2-allow-override-sage-local.patch
 u2-workaround-sympow-malloc-perturb.patch
diff --git a/debian/patches/u2-fix-less-trivial-test-cases.patch b/debian/patches/u2-fix-less-trivial-test-cases.patch
new file mode 100644
index 0000000..d755a3a
--- /dev/null
+++ b/debian/patches/u2-fix-less-trivial-test-cases.patch
@@ -0,0 +1,33 @@
+Description: Fix some more test cases with less-trivial failures
+ Every override in this file should be accompanied by an explanation on why
+ it's correct or beneficial.
+Author: Tobias Hansen <thansen at debian.org>
+Forwarded: TODO
+---
+src/sage/coding/code_bounds.py
+Obviously equivalent expressions
+---
+src/sage/functions/orthogonal_polys.py
+Obviously equivalent expressions
+--- a/sage/src/sage/coding/code_bounds.py
++++ b/sage/src/sage/coding/code_bounds.py
+@@ -578,7 +578,7 @@
+         sage: codes.bounds.entropy(0, 2)
+         0
+         sage: codes.bounds.entropy(1/5,4).factor()
+-        1/10*(log(3) - 4*log(4/5) - log(1/5))/log(2)
++        1/10*(log(5) + log(3) - 4*log(4/5))/log(2)
+         sage: codes.bounds.entropy(1, 3)
+         log(2)/log(3)
+ 
+--- a/sage/src/sage/functions/orthogonal_polys.py
++++ b/sage/src/sage/functions/orthogonal_polys.py
+@@ -1888,7 +1888,7 @@
+             sage: jacobi_P(1,n,n,n)
+             (n + 1)*n
+             sage: jacobi_P(2,n,n,n)
+-            1/4*(2*n - 1)*(n + 2)*(n + 1)^2
++            1/4*(2*n^2 + n - 1)*(n + 2)*(n + 1)
+             sage: jacobi_P(1,n,n,x)
+             (n + 1)*x
+             sage: jacobi_P(3,2,1,x)

-- 
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