code: def test_issue771(tmpdir, caplog):
      """Overwrite a GeoJSON file without logging errors."""
      schema = {"geometry": "Point", "properties": {"zero": "int"}}
  
      feature = Feature.from_dict(
          **{
              "geometry": {"type": "Point", "coordinates": (0, 0)},
              "properties": {"zero": "0"},
          }
      )
  
      outputfile = tmpdir.join("test.geojson")
  
      for i in range(2):
          with fiona.open(
              str(outputfile),
              "w",
              driver="GeoJSON",
              schema=schema,
              crs=CRS.from_epsg(4326),
          ) as collection:
              collection.write(feature)
          assert outputfile.exists()
  
      for record in caplog.records:
          assert record.levelname != "ERROR"
  
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 1 for calling a global function with example usage: test_issue771(tmpdir, caplog) without return types