File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -79,18 +79,21 @@ def test_dtype_mutation(self):
7979class TestDatasetShape :
8080 @pytest .mark .xfail (raises = ValueError )
8181 @pytest .mark .parametrize (
82- "shape" ,
82+ ( "shape" , "data_shape" ) ,
8383 [
84- (0 ,),
85- (1 ,),
86- (99 ,),
87- (1 , 1 ),
84+ ((0 ,), (100 ,)),
85+ ((1 ,), (100 ,)),
86+ ((99 ,), (100 ,)),
87+ ((1 , 1 ), (100 ,)),
88+ ((100 , None ), (100 ,)),
89+ ((None , None ), (100 ,)),
90+ ((None , 100 ), (100 ,)),
8891 ],
8992 )
90- def test_unmatched_shape_data (self , shape ):
91- ds = Dataset (dtype = "float64" , shape = ( 100 ,) )
93+ def test_unmatched_shape_data (self , shape , data_shape ):
94+ ds = Dataset (dtype = "float64" , shape = shape )
9295
93- data = np .random .rand (* shape )
96+ data = np .random .rand (* data_shape )
9497 ds .data = data
9598
9699 @pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments