@@ -4902,13 +4902,13 @@ def _constructor(self):
4902
4902
with ensure_clean_path ("temp.h5" ) as path :
4903
4903
sdf .to_hdf (path , "df" )
4904
4904
result = read_hdf (path , "df" ).values
4905
- assert np . array_equal (result , expected )
4905
+ tm . assert_numpy_array_equal (result , expected )
4906
4906
4907
4907
with ensure_clean_path ("temp.h5" ) as path :
4908
4908
with HDFStore (path ) as store :
4909
4909
store .put ("df" , sdf )
4910
4910
result = read_hdf (path , "df" ).values
4911
- assert np . array_equal (result , expected )
4911
+ tm . assert_numpy_array_equal (result , expected )
4912
4912
4913
4913
def test_supported_for_subclasses_series (self ):
4914
4914
class SubSeries (Series ):
@@ -4922,12 +4922,14 @@ def _constructor(self):
4922
4922
4923
4923
with ensure_clean_path ("temp.h5" ) as path :
4924
4924
sser .to_hdf (path , "ser" )
4925
+ result = read_hdf (path , "ser" ).values
4926
+ tm .assert_numpy_array_equal (result , expected )
4925
4927
4926
4928
with ensure_clean_path ("temp.h5" ) as path :
4927
4929
with HDFStore (path ) as store :
4928
4930
store .put ("ser" , sser )
4929
4931
result = read_hdf (path , "ser" ).values
4930
- assert np . array_equal (result , expected )
4932
+ tm . assert_numpy_array_equal (result , expected )
4931
4933
4932
4934
4933
4935
@pytest .mark .parametrize ("bad_version" , [(1 , 2 ), (1 ,), [], "12" , "123" ])
0 commit comments