1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/py3-rasterio/20-gdal.patch
Holger Jaekel 380daa9376 testing/py3-rasterio: new aport
https://pypi.python.org/pypi/rasterio
Fast and direct raster I/O for use with Numpy and SciPy
2019-12-15 18:55:39 +01:00

21 lines
752 B
Diff

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