def test_rasterize_fill_value_dtype_mismatch(basic_geometry):

    with Env():
        with pytest.raises(ValueError):
            rasterize(
                [basic_geometry], out_shape=DEFAULT_SHAPE, fill=1000000,
                default_value=2, dtype=numpy.uint8
            )
A fill value that doesn't match dtype should fail
dataset/ETHPy150Open mapbox/rasterio/tests/test_features.py/test_rasterize_fill_value_dtype_mismatch