diff --git a/test/test_cfconventions.jl b/test/test_cfconventions.jl index 5af7e220..21dbe521 100644 --- a/test/test_cfconventions.jl +++ b/test/test_cfconventions.jl @@ -130,7 +130,7 @@ function myplot(height::NCDatasets.AbstractVariable) end myplot(height) =# - +close(ds) fname = tempname() @@ -164,7 +164,6 @@ close(ds) ds = NCDataset(fname) - # This produces an error because it is unclear if we should load lon_u or lon_v @test_throws KeyError ds[CF"longitude"] # error @@ -177,3 +176,4 @@ nclon_u2 = ds["ubar"]["lon_u"] nclon_u2 = ds["ubar"][:lon_u] @test name(nclon_u2) == "lon_u" +close(ds) diff --git a/test/test_variable.jl b/test/test_variable.jl index f2d43bc7..0393444f 100644 --- a/test/test_variable.jl +++ b/test/test_variable.jl @@ -287,3 +287,4 @@ data2 = zeros(Int,1) data2 = zeros(Int,10) # asking too many elements @test_throws BoundsError NCDatasets.load!(ds["data"].var,data2,1:10) +close(ds)