Bug#790549: rasterio: FTBFS on *-i386: AssertionError in test suite
Aaron M. Ucko
ucko at debian.org
Tue Jun 30 04:06:29 UTC 2015
Source: rasterio
Version: 0.24.0-1
Severity: important
Thanks for addressing rasterio's Cython 0.22 incompatibility. The new
version builds on most architectures, but fails with test suite errors
on i386 and kfreebsd-i386:
=================================== FAILURES ===================================
______________________ test_read_out_shape_resample_down _______________________
def test_read_out_shape_resample_down():
with rasterio.open('tests/data/RGB.byte.tif') as s:
out = numpy.zeros((7, 8), dtype=rasterio.ubyte)
data = s.read(1, out=out)
expected = numpy.array([
[ 0, 8, 5, 7, 0, 0, 0, 0],
[ 0, 6, 61, 15, 27, 15, 24, 128],
[ 0, 20, 152, 23, 15, 19, 28, 0],
[ 0, 17, 255, 25, 255, 22, 32, 0],
[ 9, 7, 14, 16, 19, 18, 36, 0],
[ 6, 27, 43, 207, 38, 31, 73, 0],
[ 0, 0, 0, 0, 74, 23, 0, 0]], dtype=numpy.uint8)
> assert (data == expected).all() # all True.
E assert <built-in method all of numpy.ndarray object at 0xa5c5fd8>()
E + where <built-in method all of numpy.ndarray object at 0xa5c5fd8> = array([[ 0, ..., dtype=uint8) == array([[ 0, ..., dtype=uint8)
E Use -v to get the full diff.all
tests/test_read_resample.py:23: AssertionError
----------------------------- Captured stderr call -----------------------------
DEBUG:rasterio:Got coordinate system
DEBUG:rasterio:Got coordinate system
_____________________________ test_shapes_sampling _____________________________
runner = <click.testing.CliRunner object at 0xf0de58ac>
def test_shapes_sampling(runner):
result = runner.invoke(
features.shapes, ['tests/data/shade.tif', '--sampling', '10'])
assert result.exit_code == 0
assert result.output.count('"FeatureCollection"') == 1
> assert result.output.count('"Feature"') == 124
E assert 123 == 124
E + where 123 = <built-in method count of unicode object at 0xf10940f8>('"Feature"')
E + where <built-in method count of unicode object at 0xf10940f8> = '{"bbox": [-106.52343748530265, 39.57182223290113, -106.43554686031503, 39.6395375599189], "features": [{"bbox": [-106..., "id": "0.0", "properties": {"filename": "shade.tif", "val": 0.0}, "type": "Feature"}], "type": "FeatureCollection"}\n'.count
E + where '{"bbox": [-106.52343748530265, 39.57182223290113, -106.43554686031503, 39.6395375599189], "features": [{"bbox": [-106..., "id": "0.0", "properties": {"filename": "shade.tif", "val": 0.0}, "type": "Feature"}], "type": "FeatureCollection"}\n' = <Result okay>.output
tests/test_rio_features.py:316: AssertionError
Could you please take a look?
Thanks!
More information about the Pkg-grass-devel
mailing list