code: def test_issue1169():
      """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),
                              },
                          }
                      )
                  ]
              )
  
file_path: Fiona/tests/test_write.py
imports: import pytest
  from .conftest import requires_gdal33
  import fiona
  from fiona.crs import CRS
  from fiona.errors import DriverError
  from fiona.model import Feature
label_desc: Use image node_id 4 for calling a global function with example usage: test_issue1169() without return types