From 02c1d5dcf8aad42f2f86dc541356d51466e2e327 Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Wed, 15 Nov 2023 21:36:40 +0100 Subject: [PATCH] reenable test --- src/NCDatasets.jl | 2 +- test/test_variable.jl | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/NCDatasets.jl b/src/NCDatasets.jl index ded8dddd..a51c215a 100644 --- a/src/NCDatasets.jl +++ b/src/NCDatasets.jl @@ -33,7 +33,7 @@ import CommonDataModel: AbstractDataset, AbstractVariable, fillvalue, fill_and_missing_values, scale_factor, add_offset, time_origin, time_factor, CFtransformdata!, - CFVariable, variable, cfvariable, defVar, + CFVariable, variable, cfvariable, defVar, load!, path, name, isopen, unlimited, dataset, groupname, groupnames, group, defGroup, dimnames, dim, defDim, diff --git a/test/test_variable.jl b/test/test_variable.jl index 45e388d7..95a165cf 100644 --- a/test/test_variable.jl +++ b/test/test_variable.jl @@ -3,7 +3,7 @@ using Dates using Printf using NCDatasets using DataStructures -#= + sz = (4,5) filename = tempname() #filename = "/tmp/test-6.nc" @@ -224,7 +224,6 @@ ds.attrib["x_range"] = x close(ds) rm(filename) -=# # issue 180 using NCDatasets @@ -250,7 +249,6 @@ for data = sample_data end close(ds) -#= # issue 207 filename_src = tempname() ds_src = NCDataset(filename_src, "c") @@ -270,11 +268,14 @@ close(ds_src) close(ds_dest) # issue 209 +# broken +# maybe related to +# https://github.com/meggart/DiskArrays.jl/issues/131 filename_src = tempname() ds = NCDataset(filename_src, "c") data = [1,2,3] ncv = defVar(ds,"data",data,("data",)) -@test isempty(ncv[Int[]]) +@test_broken isempty(ncv[Int[]]) close(ds) # issue 211 @@ -289,4 +290,4 @@ data2 = zeros(Int,1) data2 = zeros(Int,10) # asking too many elements @test_throws BoundsError NCDatasets.load!(ds["data"].var,data2,1:10) -=# +