def test_shapes_connectivity_invalid(diagonal_image):

    with Env():
        with pytest.raises(ValueError):
            assert next(shapes(diagonal_image, connectivity=12))
Exit a context and close the file.
dataset/ETHPy150Open mapbox/rasterio/tests/test_features.py/test_shapes_connectivity_invalid--crossover with--dataset/ETHPy150Open PyTables/PyTables/tables/file.py/File.__exit__