33
44from pandas ._libs .tslibs import Timestamp
55from pandas .compat import PY312
6- from pandas .errors import Pandas4Warning
76
87import pandas as pd
98from pandas import (
@@ -902,9 +901,7 @@ def test_select_as_multiple(setup_path):
902901 result = store .select_as_multiple (
903902 ["df1" , "df2" ], where = ["A>0" , "B>0" ], selector = "df1"
904903 )
905- msg = "Sorting by default when concatenating all DatetimeIndex is deprecated"
906- with tm .assert_produces_warning (Pandas4Warning , match = msg ):
907- expected = concat ([df1 , df2 ], axis = 1 )
904+ expected = concat ([df1 , df2 ], axis = 1 )
908905 expected = expected [(expected .A > 0 ) & (expected .B > 0 )]
909906 tm .assert_frame_equal (result , expected , check_freq = False )
910907 # FIXME: 2021-01-20 this is failing with freq None vs 4B on some builds
@@ -913,9 +910,7 @@ def test_select_as_multiple(setup_path):
913910 result = store .select_as_multiple (
914911 ["df1" , "df2" ], where = "index>df2.index[4]" , selector = "df2"
915912 )
916- msg = "Sorting by default when concatenating all DatetimeIndex is deprecated"
917- with tm .assert_produces_warning (Pandas4Warning , match = msg ):
918- expected = concat ([df1 , df2 ], axis = 1 )
913+ expected = concat ([df1 , df2 ], axis = 1 )
919914 expected = expected [5 :]
920915 tm .assert_frame_equal (result , expected )
921916
0 commit comments