[pysal] 07/08: Add patch to fix UnicodeDecodeError in test_examples.
Bas Couwenberg
sebastic at debian.org
Mon Nov 6 19:01:41 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository pysal.
commit e51dafc7b80f4e6d37016116c62e327e00476afe
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Mon Nov 6 18:59:09 2017 +0100
Add patch to fix UnicodeDecodeError in test_examples.
---
debian/changelog | 1 +
debian/patches/series | 1 +
debian/patches/test_examples.patch | 29 +++++++++++++++++++++++++++++
3 files changed, 31 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index cb8f8dc..8fe11d9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ pysal (1.14.3-1) UNRELEASED; urgency=medium
* New upstream release.
* Drop TabError.patch, applied upstream.
* Bump Standards-Version to 4.1.1, no changes.
+ * Add patch to fix UnicodeDecodeError in test_examples.
-- Bas Couwenberg <sebastic at debian.org> Mon, 06 Nov 2017 07:54:41 +0100
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e7fe454
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+test_examples.patch
diff --git a/debian/patches/test_examples.patch b/debian/patches/test_examples.patch
new file mode 100644
index 0000000..8334220
--- /dev/null
+++ b/debian/patches/test_examples.patch
@@ -0,0 +1,29 @@
+Description: Fix UnicodeDecodeError by changing UTF-8 character to ASCII.
+ ======================================================================
+ ERROR: test_parser (pysal.examples.test_examples.Example_Tester)
+ ----------------------------------------------------------------------
+ Traceback (most recent call last):
+ File "/build/pysal-1.14.3/.pybuild/pythonX.Y_3.6/build/pysal/examples/test_examples.py", line 15, in test_parser
+ self.extext = ex.explain(example)
+ File "/build/pysal-1.14.3/.pybuild/pythonX.Y_3.6/build/pysal/examples/__init__.py", line 77, in explain
+ return _read_example(fpath)
+ File "/build/pysal-1.14.3/.pybuild/pythonX.Y_3.6/build/pysal/examples/__init__.py", line 55, in _read_example
+ title = io.readline().strip('\n')
+ File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
+ return codecs.ascii_decode(input, self.errors)[0]
+ UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 384: ordinal not in range(128)
+ -------------------- >> begin captured stdout << ---------------------
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/pysal/pysal/pull/1002
+
+--- a/pysal/examples/networks/README.md
++++ b/pysal/examples/networks/README.md
+@@ -9,7 +9,7 @@ Datasets used for network testing
+ * eberly_net.shx: spatial index.
+ * eberly_net_pts_offnetwork.dbf: attribute data for points off network. (k=2)
+ * eberly_net_pts_offnetwork.shp: Point shapefile. (n=100)
+-* eberly_net_pts_offnetwork.shx: spatial index。
++* eberly_net_pts_offnetwork.shx: spatial index.
+ * eberly_net_pts_onnetwork.dbf: attribute data for points on network. (k=1)
+ * eberly_net_pts_onnetwork.shp: Point shapefile. (n=110)
+ * eberly_net_pts_onnetwork.shx: spatial index.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pysal.git
More information about the Pkg-grass-devel
mailing list