          # The vsi buffer is None for rasters that are not vsi based.
          self.assertIsNone(self.rs.vsi_buffer)
  
      def test_vsi_vsizip_filesystem(self):
          rst_zipfile = tempfile.NamedTemporaryFile(suffix=".zip")
          with zipfile.ZipFile(rst_zipfile, mode="w") as zf:
              zf.write(self.rs_path, "raster.tif")
          rst_path = "/vsizip/" + os.path.join(rst_zipfile.name, "raster.tif")
          rst = GDALRaster(rst_path)
          self.assertEqual(rst.driver.name, self.rs.driver.name)
 
</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         with tempfile.NamedTemporaryFile(mode="w", suffix=".json") as tmp:
 </s> add         with NamedTemporaryFile(mode="w", suffix=".json") as tmp: </s> remove         rstfile = tempfile.NamedTemporaryFile(suffix=".tif")
 </s> add         rstfile = NamedTemporaryFile(suffix=".tif")
        rst_zipfile = NamedTemporaryFile(suffix=".zip")
          # The vsi buffer is None for rasters that are not vsi based.
          self.assertIsNone(self.rs.vsi_buffer)
  
      def test_vsi_vsizip_filesystem(self):
        rst_zipfile = NamedTemporaryFile(suffix=".zip")
          with zipfile.ZipFile(rst_zipfile, mode="w") as zf:
              zf.write(self.rs_path, "raster.tif")
          rst_path = "/vsizip/" + os.path.join(rst_zipfile.name, "raster.tif")
          rst = GDALRaster(rst_path)
          self.assertEqual(rst.driver.name, self.rs.driver.name)
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