Skip to content

Commit

Permalink
Generalize exception type
Browse files Browse the repository at this point in the history
In preparation for JuliaLang/julia#41885
  • Loading branch information
timholy committed Aug 19, 2021
1 parent 51f2260 commit 6d83de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const AG = ArchGDAL;
AG.readraster("ospy/data4/aster_write.img"; flags = AG.OF_UPDATE) do ds
@test sprint(print, ds) == """
GDAL Dataset (Driver: HFA/Erdas Imagine Images (.img))
File(s):
File(s):
ospy/data4/aster_write.img
Dataset (width x height): 5665 x 5033 (pixels)
Expand Down Expand Up @@ -171,7 +171,7 @@ const AG = ArchGDAL;
nbands = 0,
dtype = UInt8,
) do dataset
@test_throws ArgumentError AG.RasterDataset(dataset)
@test_throws Union{ArgumentError,MethodError} AG.RasterDataset(dataset)
@test_throws DimensionMismatch AG._common_size(dataset)
end
end
Expand Down

0 comments on commit 6d83de1

Please sign in to comment.