[pycoast] 05/07: Skip tests that use data in the shapes directory
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Sun Jul 3 17:30:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
a_valentino-guest pushed a commit to branch master
in repository pycoast.
commit 512e79067dd48d4cfbc1afce8496a3a9e6691a79
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Sun Jul 3 17:20:29 2016 +0000
Skip tests that use data in the shapes directory
---
debian/changelog | 2 ++
debian/patches/0003-Skip-tests-that-use-shapes.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 23 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b8ad7db..a7108a1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,8 @@ pycoast (0.5.4+dfsg.1-1) UNRELEASED; urgency=medium
ContourWriterAGG if the drawagg module is not available
- new 0002-Skip-offending-tests.patch for skipping offending tests
(see also https://github.com/pytroll/pycoast/issues/4)
+ - add 0003-Skip-tests-that-use-shapes.patch (data are non longer included
+ in the source tarball)
* debian/copyright
- fix DEP-5 URL
diff --git a/debian/patches/0003-Skip-tests-that-use-shapes.patch b/debian/patches/0003-Skip-tests-that-use-shapes.patch
new file mode 100644
index 0000000..a7e36ea
--- /dev/null
+++ b/debian/patches/0003-Skip-tests-that-use-shapes.patch
@@ -0,0 +1,20 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Sun, 3 Jul 2016 17:17:27 +0000
+Subject: Skip tests that use shapes
+
+---
+ pycoast/tests/test_pycoast.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pycoast/tests/test_pycoast.py b/pycoast/tests/test_pycoast.py
+index 6cd0230..12ab9e8 100644
+--- a/pycoast/tests/test_pycoast.py
++++ b/pycoast/tests/test_pycoast.py
+@@ -281,6 +281,7 @@ class TestPIL(TestPycoast):
+ res = np.array(img)
+ self.failUnless(fft_metric(grid_data, res), 'Writing of nh polygons failed')
+
++ @unittest.skip('dataset not available: test_data/shapes/Metareas.shp')
+ def test_add_shapefile_shapes(self):
+ grid_img = Image.open(os.path.join(os.path.dirname(__file__),
+ 'brazil_shapefiles.png'))
diff --git a/debian/patches/series b/debian/patches/series
index 4a8d90f..e187e7a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Skip-test-in-ContourWriterAGG.patch
0002-Skip-offending-tests.patch
+0003-Skip-tests-that-use-shapes.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pycoast.git
More information about the Pkg-grass-devel
mailing list