          ]
          for srs in tests:
              with self.subTest(srs=srs):
                  # Prepare tempfile and nodata value.
                  rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
                  ndv = 99
                  # Create in file based raster.
                  source = GDALRaster(
                      {
                          "datatype": 1,
 
</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             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         rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add         rstfile = NamedTemporaryFile(suffix=".tif")
                rstfile = NamedTemporaryFile(suffix=".tif")
          ]
          for srs in tests:
              with self.subTest(srs=srs):
                  # Prepare tempfile and nodata value.
                rstfile = NamedTemporaryFile(suffix=".tif")
                  ndv = 99
                  # Create in file based raster.
                  source = GDALRaster(
                      {
                          "datatype": 1,
keep keep keep keep replace keep keep keep keep keep
 Fixed #34374 -- Fixed GIS tests on Windows. 
tests/gis_tests/gdal_tests/test_raster.py