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

johanvdw-guest pushed a commit to branch master
in repository python-geopandas.

commit 276636f5e02d514d9bcc218b9c3fdc9d37b345ab
Author: Johan Van de Wauw <johan.vandew...@gmail.com>
Date:   Tue Jun 9 19:11:51 2015 +0200

    Fix tests
---
 debian/patches/0001-Fix-tests.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series               |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/0001-Fix-tests.patch 
b/debian/patches/0001-Fix-tests.patch
new file mode 100644
index 0000000..0486e6c
--- /dev/null
+++ b/debian/patches/0001-Fix-tests.patch
@@ -0,0 +1,30 @@
+From: Johan Van de Wauw <johan.vandew...@gmail.com>
+Date: Tue, 9 Jun 2015 19:11:04 +0200
+Subject: Fix tests
+
+Based on upstream commit
+https://github.com/geopandas/geopandas/commit/cb62e9f80bbd5e3cf695898ca01e2a1009e73a5d
+---
+ tests/test_types.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_types.py b/tests/test_types.py
+index fdd14f5..f4b0dad 100644
+--- a/tests/test_types.py
++++ b/tests/test_types.py
+@@ -39,7 +39,7 @@ class TestSeries(unittest.TestCase):
+         assert type(self.pts.iloc[5:]) is GeoSeries
+ 
+     def test_fancy(self):
+-        idx = (self.pts.index % 2).astype(bool)
++        idx = (self.pts.index.to_series() % 2).astype(bool)
+         assert type(self.pts[idx]) is GeoSeries
+ 
+     def test_take(self):
+@@ -85,5 +85,5 @@ class TestDataFrame(unittest.TestCase):
+         assert type(self.df[::2]) is GeoDataFrame
+ 
+     def test_fancy(self):
+-        idx = (self.df.index % 2).astype(bool)
++        idx = (self.df.index.to_series() % 2).astype(bool)
+         assert type(self.df[idx]) is GeoDataFrame
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..afe4e4f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-tests.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/python-geopandas.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to