File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
lib/iris/tests/integration/netcdf Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1010import  iris 
1111from  iris .coords  import  DimCoord 
1212from  iris .cube  import  Cube 
13- from  iris .fileformats .netcdf ._thread_safe_nc  import  netCDF4   as   nc 
13+ from  iris .fileformats .netcdf ._thread_safe_nc  import  DatasetWrapper 
1414from  iris .fileformats .netcdf .saver  import  Saver 
1515
1616
@@ -41,7 +41,7 @@ def test_dataless_save(self):
4141        iris .save (self .testcube , self .test_path )
4242        assert  Saver ._DATALESS_ATTRNAME  not  in   self .testcube .attributes 
4343        # Check the content as seen in the file 
44-         ncds  =  nc . Dataset (self .test_path )
44+         ncds  =  DatasetWrapper (self .test_path )
4545        var  =  ncds .variables ["testdata" ]
4646        assert  Saver ._DATALESS_ATTRNAME  in  var .ncattrs ()
4747        assert  var .dtype  ==  Saver ._DATALESS_DTYPE 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments