[sagemath] 01/01: Don't fail plot.py doctest if DISPLAY is unset

Ximin Luo infinity0 at debian.org
Thu Nov 10 00:18:05 UTC 2016


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

infinity0 pushed a commit to branch master
in repository sagemath.

commit 7685bf643f6d9facf900c3cbf2303ecebbe53ec5
Author: Ximin Luo <infinity0 at debian.org>
Date:   Thu Nov 10 01:17:37 2016 +0100

    Don't fail plot.py doctest if DISPLAY is unset
---
 debian/patches/fixsage-dont-require-DISPLAY.patch | 16 ++++++++++++++++
 debian/patches/series                             |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/fixsage-dont-require-DISPLAY.patch b/debian/patches/fixsage-dont-require-DISPLAY.patch
new file mode 100644
index 0000000..f7bd38a
--- /dev/null
+++ b/debian/patches/fixsage-dont-require-DISPLAY.patch
@@ -0,0 +1,16 @@
+Description: Don't fail plot.py doctest if DISPLAY is unset
+ https://stackoverflow.com/questions/37604289/tkinter-tclerror-no-display-name-and-no-display-environment-variable
+Author: Ximin Luo <infinity0 at debian.org>
+Forwarded: TODO
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/sage/src/sage/plot/plot.py
++++ b/sage/src/sage/plot/plot.py
+@@ -89,6 +89,7 @@
+ 
+ We draw a curve::
+ 
++    sage: import matplotlib; matplotlib.use('Agg')
+     sage: plot(x^2, (x,0,5))
+     Graphics object consisting of 1 graphics primitive
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 70b618b..61113a9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,6 +11,7 @@ fixsage-use-lexists-not-exists.patch
 fixsage-proper-scipy-rtol.patch
 fixsage-revert-lazy-import-dependent-on-python-patch.patch
 fixsage-revert-minor-feature-dependent-on-python-patch.patch
+fixsage-dont-require-DISPLAY.patch
 fixsage-allow-override-sage-local.patch
 
 # due to us using a different version of a dependency than what Sage uses

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