          self.assertEqual(result, list(range(256)))
  
      def test_file_based_raster_creation(self):
          # Prepare tempfile
          rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
  
          # Create file-based raster from scratch
          GDALRaster(
              {
                  "datatype": self.rs.bands[0].datatype(),
 
</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")
          self.assertEqual(result, list(range(256)))
  
      def test_file_based_raster_creation(self):
          # Prepare tempfile
        rstfile = NamedTemporaryFile(suffix=".tif")
  
          # Create file-based raster from scratch
          GDALRaster(
              {
                  "datatype": self.rs.bands[0].datatype(),
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