[sagemath] 01/02: Fix one doctest in interfaces/gap.py and one in misc/compat.py.

Tobias Hansen thansen at moszumanska.debian.org
Sat Sep 30 16:45:37 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 13868ec146f7d465fcdc35339745bfd1016229cd
Author: Tobias Hansen <thansen at debian.org>
Date:   Sat Sep 30 17:27:25 2017 +0100

    Fix one doctest in interfaces/gap.py and one in misc/compat.py.
---
 debian/patches/d0-singular.patch               | 13 ++++++++++++-
 debian/patches/u2-fix-trivial-test-cases.patch | 11 +++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/debian/patches/d0-singular.patch b/debian/patches/d0-singular.patch
index c59bc00..7d48d8c 100644
--- a/debian/patches/d0-singular.patch
+++ b/debian/patches/d0-singular.patch
@@ -43,7 +43,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
          inc.append(path)
 --- a/sage/src/sage/env.py
 +++ b/sage/src/sage/env.py
-@@ -152,7 +153,7 @@
+@@ -152,7 +152,7 @@
      else:
          extension = "so"
      # library name changed from libsingular to libSingular btw 3.x and 4.x
@@ -52,3 +52,14 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  
  _add_variable_or_fallback('SINGULAR_SO', SINGULAR_SO)
  
+--- a/sage/src/sage/misc/compat.py
++++ b/sage/src/sage/misc/compat.py
+@@ -87,7 +87,7 @@
+     EXAMPLES::
+ 
+         sage: from sage.misc.compat import find_library
+-        sage: find_library('Singular')
++        sage: find_library('singular-Singular')
+         '...Singular...'
+ 
+     """
diff --git a/debian/patches/u2-fix-trivial-test-cases.patch b/debian/patches/u2-fix-trivial-test-cases.patch
index c8ce0c3..0114af2 100644
--- a/debian/patches/u2-fix-trivial-test-cases.patch
+++ b/debian/patches/u2-fix-trivial-test-cases.patch
@@ -123,3 +123,14 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
          """
          r = os.popen('tachyon').read()
          if use_pager == True:
+--- a/sage/src/sage/interfaces/gap.py
++++ b/sage/src/sage/interfaces/gap.py
+@@ -1839,7 +1839,7 @@
+         sage: from sage.interfaces.gap import gap_command
+         sage: cmd = 'echo "quit;" | ' + gap_command(use_workspace_cache=False)[0]
+         sage: gap_startup = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
+-        sage: 'http://www.gap-system.org' in gap_startup
++        sage: 'www.gap-system.org' in gap_startup
+         True
+         sage: 'Error' not in gap_startup
+         True

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