[sagenb] 06/06: Fix a test case

Ximin Luo infinity0 at debian.org
Mon Oct 3 22:30:56 UTC 2016


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

infinity0 pushed a commit to branch master
in repository sagenb.

commit b337569ab7212dd6cfa9242555778e8d16804ca0
Author: Ximin Luo <infinity0 at pwned.gg>
Date:   Tue Oct 4 00:29:03 2016 +0200

    Fix a test case
---
 debian/patches/fix-test-case.patch | 22 ++++++++++++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/fix-test-case.patch b/debian/patches/fix-test-case.patch
new file mode 100644
index 0000000..672f622
--- /dev/null
+++ b/debian/patches/fix-test-case.patch
@@ -0,0 +1,22 @@
+Description: Fix test case
+ Not sure in which world or locale "n" is supposed to sort before "11"
+Author: Ximin Luo <infinity0 at debian.org>
+Forwarded: TBD
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/sagenb/notebook/misc.py
++++ b/sagenb/notebook/misc.py
+@@ -213,11 +213,11 @@
+         '[3,2.0,{"foo":"bar"},null]'
+         sage: d = {'AR': 'MA', int(11): 'foo', 'bar': float(1.0), None: 'blah'}
+         sage: encode_response(d, sort_keys = True)
+-        '{"null":"blah","11":"foo","AR":"MA","bar":1.0}'
++        '{"11":"foo","AR":"MA","bar":1.0,"null":"blah"}'
+         sage: d['archies'] = ['an', 'mon', 'hier']
+         sage: d['sub'] = {'shape': 'triangle', 'color': 'blue', 'sides': [int(3), int(4), int(5)]}
+         sage: encode_response(d, sort_keys = True)
+-        '{"null":"blah","11":"foo","AR":"MA","archies":["an","mon","hier"],"bar":1.0,"sub":{"color":"blue","shape":"triangle","sides":[3,4,5]}}'
++        '{"11":"foo","AR":"MA","archies":["an","mon","hier"],"bar":1.0,"null":"blah","sub":{"color":"blue","shape":"triangle","sides":[3,4,5]}}'
+         sage: print(encode_response(d, separators = (', ', ': '), indent = 4))
+         {
+             "...": ...
diff --git a/debian/patches/series b/debian/patches/series
index acc96c5..c24ada3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 update-flask-0.11.patch
+fix-test-case.patch

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



More information about the debian-science-commits mailing list