aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-rasterio/20-gdal.patch
blob: a1cc513b7ec8e8010228febe7182ca28b07dad2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Author: Holger Jaekel <holger.jaekel@gmx.de>
Summary: GDAL does not read HDF5
----

--- a/tests/test_read.py
+++ b/tests/test_read.py
@@ -259,14 +259,6 @@ class ReaderContextTest(unittest.TestCas
             self.assertEqual(a.shape, (1, 2, 2))
             self.assertTrue(hasattr(a, 'mask'))

-    @pytest.mark.skipif(not has_hdf, reason="HDF driver not available")
-    def test_read_no_band(self):
-        with rasterio.open('tests/data/no_band.h5') as s:
-            self.assertEqual(s.count, 0)
-            self.assertEqual(s.meta['dtype'], 'float_')
-            self.assertIsNone(s.meta['nodata'])
-            self.assertRaises(ValueError, s.read)
-

 @pytest.mark.parametrize("shape,indexes", [
     ((72, 80), 1),          # Single band