  import tempfile
  from io import StringIO
  
  from django.contrib.gis import gdal
  from django.contrib.gis.db.models import Extent, MakeLine, Union, functions
  from django.contrib.gis.geos import (
 
</s> remove         rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add         rstfile = NamedTemporaryFile(suffix=".tif") </s> remove                 rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add                 rstfile = NamedTemporaryFile(suffix=".tif") </s> remove         with tempfile.NamedTemporaryFile(mode="w", suffix=".json") as tmp:
 </s> add         with NamedTemporaryFile(mode="w", suffix=".json") as tmp:

  from io import StringIO
  
  from django.contrib.gis import gdal
  from django.contrib.gis.db.models import Extent, MakeLine, Union, functions
  from django.contrib.gis.geos import (
replace keep keep keep keep keep
 Fixed #34374 -- Fixed GIS tests on Windows. 
tests/gis_tests/geoapp/tests.py