Skip to content
Commits on Source (2)
......@@ -10,6 +10,10 @@ pyresample (1.10.1-1) UNRELEASED; urgency=medium
* debian/patches
- drop test_spherical.patch, applied upstrem.
- refresh remaining patches.
- new 0003-Skip-TestXArrayResamplerNN-if-dask-is-not-available.patch:
skip tests requiring dask if dask is not available.
- new 0004-Regenerate-cython-extensions.patch
Fixes a FTBFS with Python 3.7 (Closes: #903530).
-- Bas Couwenberg <sebastic@debian.org> Thu, 05 Jul 2018 11:02:39 +0200
......
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Wed, 11 Jul 2018 06:50:33 +0000
Subject: Skip TestXArrayResamplerNN if dask is not available
---
pyresample/test/test_kd_tree.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pyresample/test/test_kd_tree.py b/pyresample/test/test_kd_tree.py
index dcb3943..fbf91ef 100644
--- a/pyresample/test/test_kd_tree.py
+++ b/pyresample/test/test_kd_tree.py
@@ -14,6 +14,11 @@ if sys.version_info < (2, 7):
else:
import unittest
+try:
+ import dask.array as da
+except ImportError:
+ da = None
+
class Test(unittest.TestCase):
@@ -696,6 +701,7 @@ class Test(unittest.TestCase):
self.assertTrue(np.array_equal(fill_mask, expected_fill_mask))
+@unittest.skipIf(not da, 'dask not available')
class TestXArrayResamplerNN(unittest.TestCase):
"""Test the XArrayResamplerNN class."""
This diff is collapsed.
0001-fix-doc-build.patch
0002-fix-proj4-initialization.patch
0003-Skip-TestXArrayResamplerNN-if-dask-is-not-available.patch
0004-Regenerate-cython-extensions.patch