File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 3636
3737"""
3838
39- __version__ = "1.3.0 "
39+ __version__ = "1.3.1 "
4040
4141# We don't import Matplotlib here as this brings in NumPy. In turn, NumPy
4242# caches a reference to the io.open() method as part of its data loading
Original file line number Diff line number Diff line change @@ -341,11 +341,16 @@ def test_manual_file(self):
341341
342342
343343 def test_extra_trackers_unknown (self ):
344- """File trackers raises error if unknown extra_trackers option given..."""
344+ """File trackers raises error if unknown extra_tracking option given..."""
345345 with pytest .raises (ValueError ):
346346 pgfutils ._install_extra_file_trackers (["unknown" ])
347- with pytest .raises (ValueError ):
348- pgfutils ._install_extra_file_trackers (["netCDF4" , "unknown" ])
347+ try :
348+ import netCDF4
349+ except ImportError :
350+ pass
351+ else :
352+ with pytest .raises (ValueError ):
353+ pgfutils ._install_extra_file_trackers (["netCDF4" , "unknown" ])
349354
350355
351356 def test_netcdf4_setup (self ):
You can’t perform that action at this time.
0 commit comments