From 2d0e7cb6196263cf7b3dac78fe31616af9d48b62 Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Wed, 21 Aug 2024 18:24:28 +0200 Subject: [PATCH] accept exception Union{NCDatasets.NetCDFError,DimensionMismatch} --- test/test_variable.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_variable.jl b/test/test_variable.jl index 4f63d0f5..ba677fa0 100644 --- a/test/test_variable.jl +++ b/test/test_variable.jl @@ -19,8 +19,8 @@ NCDataset(filename,"c") do ds ds.dim["lat"] = sz[2] v = defVar(ds,"small",Float64,("lon","lat")) -# @test_throws Union{NCDatasets.NetCDFError,DimensionMismatch} v[:] = zeros(sz[1]+1,sz[2]) - @test_throws DimensionMismatch v[1:sz[1],1:sz[2]] = zeros(sz[1]+1,sz[2]) + @test_throws Union{NCDatasets.NetCDFError,DimensionMismatch} v[:] = zeros(sz[1]+1,sz[2]) + #@test_throws DimensionMismatch v[1:sz[1],1:sz[2]] = zeros(sz[1]+1,sz[2]) @test_throws NCDatasets.NetCDFError v[sz[1]+1,1] = 1 @test_throws NCDatasets.NetCDFError v[-1,1] = 1