      Polygon,
      fromstr,
  )
  from django.core.management import call_command
  from django.db import DatabaseError, NotSupportedError, connection
  from django.db.models import F, OuterRef, Subquery
  from django.test import TestCase, skipUnlessDBFeature
  from django.test.utils import CaptureQueriesContext
 
</s> remove import tempfile
 </s> add  </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 django.core.files.temp import NamedTemporaryFile
      Polygon,
      fromstr,
  )
from django.core.files.temp import NamedTemporaryFile
  from django.core.management import call_command
  from django.db import DatabaseError, NotSupportedError, connection
  from django.db.models import F, OuterRef, Subquery
  from django.test import TestCase, skipUnlessDBFeature
  from django.test.utils import CaptureQueriesContext
keep keep add keep keep keep keep keep
 Fixed #34374 -- Fixed GIS tests on Windows. 
tests/gis_tests/geoapp/tests.py