Skip to content

Commit

Permalink
Attempt to restore coverage by reverting conditional imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jul 27, 2016
1 parent 01ebe7d commit 443a3c8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/testdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,7 @@ class IrisDatasetTest(GridDatasetTest):
"""

def setUp(self):
try:
import iris
except:
raise SkipTest("Iris not available")
import iris
self.restore_datatype = Dataset.datatype
Dataset.datatype = ['cube']
self.data_instance_type = iris.cube.Cube
Expand Down Expand Up @@ -637,10 +634,7 @@ class XArrayDatasetTest(GridDatasetTest):
"""

def setUp(self):
try:
import xarray
except:
raise SkipTest("Xarray not available")
import xarray
self.restore_datatype = Dataset.datatype
Dataset.datatype = ['xarray']
self.data_instance_type = xarray.Dataset
Expand Down

0 comments on commit 443a3c8

Please sign in to comment.