def test_rasterize_invalid_value(basic_geometry):

    with Env():
        with pytest.raises(ValueError) as ex:
            rasterize(
                [(basic_geometry, 1000000000000)], out_shape=DEFAULT_SHAPE
            )

        assert 'dtype must be one of' in str(ex.value)
A shape value that requires an int64 should raise an exception
dataset/ETHPy150Open mapbox/rasterio/tests/test_features.py/test_rasterize_invalid_value