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