[sagemath] 01/01: Fix broken timeit with Python 2.7.11.

Tobias Hansen thansen at moszumanska.debian.org
Wed Jul 27 16:43:25 UTC 2016


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

thansen pushed a commit to branch master
in repository sagemath.

commit 5daedf5bbd80444b0b810192a5b59974337148e0
Author: Tobias Hansen <thansen at debian.org>
Date:   Wed Jul 27 16:08:08 2016 +0000

    Fix broken timeit with Python 2.7.11.
---
 debian/patches/debian-python-2.7.11.patch | 16 ++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/debian-python-2.7.11.patch b/debian/patches/debian-python-2.7.11.patch
new file mode 100644
index 0000000..3cc0cca
--- /dev/null
+++ b/debian/patches/debian-python-2.7.11.patch
@@ -0,0 +1,16 @@
+Description: Fix timeit when used with Python 2.7.11
+ Causes many tests to fail otherwise.
+Origin: https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/sagemath
+Bug: https://trac.sagemath.org/ticket/19735
+
+--- a/sage/src/sage/misc/sage_timeit.py
++++ b/sage/src/sage/misc/sage_timeit.py
+@@ -217,7 +217,7 @@
+     # but is there a better way to achieve that the code stmt has access
+     # to the shell namespace?
+ 
+-    src = timeit_.template % {'stmt': timeit_.reindent(stmt, 8),
++    src = timeit_.template % {'init': "", 'stmt': timeit_.reindent(stmt, 8),
+                              'setup': "pass"}
+     code = compile(src, "<magic-timeit>", "exec")
+     ns = {}
diff --git a/debian/patches/series b/debian/patches/series
index 667885a..0778d4f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -27,3 +27,4 @@ debian-cysignals.patch
 debian-temp-userdir-singular.patch
 debian-temp-userdir.patch
 temp-disable-parallel-sphinx.patch
+debian-python-2.7.11.patch

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