Skip to content

Commit

Permalink
assert invalid gdal datatype raises valueerror
Browse files Browse the repository at this point in the history
  • Loading branch information
emlys committed May 20, 2024
1 parent 77d9ac3 commit a332c15
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_geoprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2788,10 +2788,7 @@ def test_create_raster_from_vector_extents_invalid_pixeltype(self):
self.workspace_dir, 'target_raster.tif')
target_nodata = -1
target_pixel_type = gdal.GDT_Int16
pygeoprocessing.create_raster_from_vector_extents(
source_vector_path, target_raster_path, _DEFAULT_PIXEL_SIZE,
target_nodata, target_pixel_type)
with self.assertRaises(Exception) as cm:
with self.assertRaises(ValueError) as cm:
pygeoprocessing.create_raster_from_vector_extents(
source_vector_path, target_raster_path, _DEFAULT_PIXEL_SIZE,
target_nodata, target_pixel_type)
Expand Down

0 comments on commit a332c15

Please sign in to comment.