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 36
36
37
37
"""
38
38
39
- __version__ = "1.3.0 "
39
+ __version__ = "1.3.1 "
40
40
41
41
# We don't import Matplotlib here as this brings in NumPy. In turn, NumPy
42
42
# 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):
341
341
342
342
343
343
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..."""
345
345
with pytest .raises (ValueError ):
346
346
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" ])
349
354
350
355
351
356
def test_netcdf4_setup (self ):
You can’t perform that action at this time.
0 commit comments