File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 10
10
11
11
* Fixed link to _ slice sources_ in documentation main page.
12
12
13
+ * Fixed broken CI. (#97 )
14
+
13
15
14
16
## Version 0.7.0 (from 2024-03-19)
15
17
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def test_validate_variable_fail(self):
43
43
with pytest .raises (
44
44
ValueError ,
45
45
match = "Invalid configuration:"
46
- " 10 is not of type 'string'"
47
- " for variables.chl.dims.0 " ,
46
+ " [1-3]0 is not of type 'string'"
47
+ " for variables.chl.dims.[0-2] " ,
48
48
):
49
49
validate_config (config )
Original file line number Diff line number Diff line change 7
7
import unittest
8
8
import warnings
9
9
10
+ try :
11
+ # noinspection PyUnresolvedReferences
12
+ import h5netcdf
13
+ except ModuleNotFoundError :
14
+ h5netcdf = None
10
15
import pytest
11
16
import xarray as xr
12
17
22
27
from tests .helpers import make_test_dataset
23
28
24
29
25
- # noinspection PyUnusedLocal
26
-
27
-
28
30
# noinspection PyShadowingBuiltins,PyRedeclaration,PyMethodMayBeStatic
29
31
class OpenSliceDatasetTest (unittest .TestCase ):
30
32
def setUp (self ):
@@ -95,6 +97,7 @@ def test_slice_item_is_uri_of_memory_nc(self):
95
97
# root cause. But it may be related to just the memory FS.
96
98
warnings .warn (f"received known exception from to_netcdf(): { e } " )
97
99
100
+ @unittest .skipIf (h5netcdf is None , reason = "h5netcdf not installed" )
98
101
def test_slice_item_is_uri_of_local_fs_nc (self ):
99
102
engine = "h5netcdf"
100
103
format = "NETCDF4"
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def test_overlapping_chunks_in_data_and_encoding_raises(self):
130
130
self .ds ["v" ] = self .ds .v .chunk (x = 10 )
131
131
self .ds .v .encoding .update (chunks = (20 ,))
132
132
with pytest .raises (
133
- NotImplementedError ,
133
+ ( NotImplementedError , ValueError ) ,
134
134
match = "Specified zarr chunks"
135
135
" encoding\\ ['chunks'\\ ]=\\ (20,\\ )"
136
136
" for variable named 'v'" ,
You can’t perform that action at this time.
0 commit comments