From 6d83de1d4a6bb49037e2a10feb6015194fbc8ecc Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Thu, 19 Aug 2021 17:28:44 -0500 Subject: [PATCH] Generalize exception type In preparation for https://github.com/JuliaLang/julia/pull/41885 --- test/test_array.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_array.jl b/test/test_array.jl index 2a74d578..c2b27dee 100644 --- a/test/test_array.jl +++ b/test/test_array.jl @@ -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) @@ -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