Skip to content

Commit 6d83de1

Browse files
committed
Generalize exception type
In preparation for JuliaLang/julia#41885
1 parent 51f2260 commit 6d83de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_array.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const AG = ArchGDAL;
139139
AG.readraster("ospy/data4/aster_write.img"; flags = AG.OF_UPDATE) do ds
140140
@test sprint(print, ds) == """
141141
GDAL Dataset (Driver: HFA/Erdas Imagine Images (.img))
142-
File(s):
142+
File(s):
143143
ospy/data4/aster_write.img
144144
145145
Dataset (width x height): 5665 x 5033 (pixels)
@@ -171,7 +171,7 @@ const AG = ArchGDAL;
171171
nbands = 0,
172172
dtype = UInt8,
173173
) do dataset
174-
@test_throws ArgumentError AG.RasterDataset(dataset)
174+
@test_throws Union{ArgumentError,MethodError} AG.RasterDataset(dataset)
175175
@test_throws DimensionMismatch AG._common_size(dataset)
176176
end
177177
end

0 commit comments

Comments
 (0)