def METHOD_NAME():
    """Don't swallow errors when a collection can't be written."""
    with pytest.raises(DriverError):
        with fiona.open(
            "s3://non-existing-bucket/test.geojson",
            mode="w",
            driver="GeoJSON",
            schema={"geometry": "Point"},
        ) as collection:
            collection.writerecords(
                [
                    Feature.from_dict(
                        **{
                            "id": "0",
                            "type": "Feature",
                            "geometry": {"type": "Point", "coordinates": (1.0, 2.0)},
                        }
                    )
                ]
            )