@@ -938,7 +938,7 @@ def testResizableUnlimitedDataset(self):
938938
939939 # create the dataset
940940 req = self .endpoint + "/datasets"
941- payload = {"type" : "H5T_IEEE_F32LE" , "shape" : [10 , 20 ], "maxdims" : [30 , 0 ]}
941+ payload = {"type" : "H5T_IEEE_F32LE" , "shape" : [10 , 20 ], "maxdims" : [30 , "H5S_UNLIMITED" ]}
942942 payload ["creationProperties" ] = {"fillValue" : 3.12 }
943943 req = self .endpoint + "/datasets"
944944 rsp = self .session .post (req , data = json .dumps (payload ), headers = headers )
@@ -970,7 +970,7 @@ def testResizableUnlimitedDataset(self):
970970 self .assertEqual (shape ["dims" ][1 ], 20 )
971971 self .assertTrue ("maxdims" in shape )
972972 self .assertEqual (shape ["maxdims" ][0 ], 30 )
973- self .assertEqual (shape ["maxdims" ][1 ], 0 )
973+ self .assertEqual (shape ["maxdims" ][1 ], "H5S_UNLIMITED" )
974974
975975 # verify shape using the GET shape request
976976 req = req + "/shape"
@@ -987,7 +987,7 @@ def testResizableUnlimitedDataset(self):
987987 self .assertTrue ("maxdims" in shape )
988988 self .assertEqual (len (shape ["maxdims" ]), 2 )
989989 self .assertEqual (shape ["maxdims" ][0 ], 30 )
990- self .assertEqual (shape ["maxdims" ][1 ], 0 )
990+ self .assertEqual (shape ["maxdims" ][1 ], "H5S_UNLIMITED" )
991991
992992 # resize the second dimension to 500 elements
993993 payload = {"shape" : [10 , 500 ]}
@@ -1009,7 +1009,7 @@ def testResizableUnlimitedDataset(self):
10091009 self .assertTrue ("maxdims" in shape )
10101010 self .assertEqual (len (shape ["maxdims" ]), 2 )
10111011 self .assertEqual (shape ["maxdims" ][0 ], 30 )
1012- self .assertEqual (shape ["maxdims" ][1 ], 0 )
1012+ self .assertEqual (shape ["maxdims" ][1 ], "H5S_UNLIMITED" )
10131013
10141014 def testExtendDataset (self ):
10151015 # test extending dataset
0 commit comments