@@ -5231,33 +5231,22 @@ def _compare(self, df, samples):
5231
5231
5232
5232
def test_read_complete (self ):
5233
5233
path , objname , samples = self ._create_simple_hdf5_file_with_pytables ()
5234
-
5235
- df = pd .read_hdf (path , key = objname )
5236
- self ._compare (df , samples )
5234
+ self ._compare (pd .read_hdf (path , key = objname ), samples )
5237
5235
5238
5236
def test_read_with_start (self ):
5239
5237
path , objname , samples = self ._create_simple_hdf5_file_with_pytables ()
5240
-
5241
- # Currently this fails as of
5242
- # https://github.com/pandas-dev/pandas/issues/11188
5243
- with pytest .raises (ValueError , match = 'Shape of passed values is' ):
5244
- df = pd .read_hdf (path , key = objname , start = 1 )
5245
- self ._compare (df , samples [1 :])
5238
+ # This is a regression test for pandas-dev/pandas/issues/11188
5239
+ self ._compare (pd .read_hdf (path , key = objname , start = 1 ), samples [1 :])
5246
5240
5247
5241
def test_read_with_stop (self ):
5248
5242
path , objname , samples = self ._create_simple_hdf5_file_with_pytables ()
5249
-
5250
- # Currently this fails as of
5251
- # https://github.com/pandas-dev/pandas/issues/11188
5252
- with pytest .raises (ValueError , match = 'Shape of passed values is' ):
5253
- df = pd .read_hdf (path , key = objname , stop = 1 )
5254
- self ._compare (df , samples [0 :1 ])
5243
+ # This is a regression test for pandas-dev/pandas/issues/11188
5244
+ self ._compare (pd .read_hdf (path , key = objname , stop = 1 ), samples [0 :1 ])
5255
5245
5256
5246
def test_read_with_startstop (self ):
5257
5247
path , objname , samples = self ._create_simple_hdf5_file_with_pytables ()
5258
-
5259
- # Currently this fails as of
5260
- # https://github.com/pandas-dev/pandas/issues/11188
5261
- with pytest .raises (ValueError , match = 'Shape of passed values is' ):
5262
- df = pd .read_hdf (path , key = objname , start = 1 , stop = 2 )
5263
- self ._compare (df , samples [1 :2 ])
5248
+ # This is a regression test for pandas-dev/pandas/issues/11188
5249
+ self ._compare (
5250
+ pd .read_hdf (path , key = objname , start = 1 , stop = 2 ),
5251
+ samples [1 :2 ]
5252
+ )
0 commit comments