@@ -197,7 +197,7 @@ def tests_raises_on_nuisance(test_frame):
197197 tm .assert_frame_equal (result , expected )
198198
199199 expected = r [["A" , "B" , "C" ]].mean ()
200- msg = re .escape ("agg function failed [how->mean,dtype->object] " )
200+ msg = re .escape ("agg function failed [how->mean,dtype->" )
201201 with pytest .raises (TypeError , match = msg ):
202202 r .mean ()
203203 result = r .mean (numeric_only = True )
@@ -948,7 +948,7 @@ def test_frame_downsample_method(method, numeric_only, expected_data):
948948 if isinstance (expected_data , str ):
949949 if method in ("var" , "mean" , "median" , "prod" ):
950950 klass = TypeError
951- msg = re .escape (f"agg function failed [how->{ method } ,dtype->object] " )
951+ msg = re .escape (f"agg function failed [how->{ method } ,dtype->" )
952952 else :
953953 klass = ValueError
954954 msg = expected_data
@@ -998,7 +998,7 @@ def test_series_downsample_method(method, numeric_only, expected_data):
998998 with pytest .raises (TypeError , match = msg ):
999999 func (** kwargs )
10001000 elif method == "prod" :
1001- msg = re .escape ("agg function failed [how->prod,dtype->object] " )
1001+ msg = re .escape ("agg function failed [how->prod,dtype->" )
10021002 with pytest .raises (TypeError , match = msg ):
10031003 func (** kwargs )
10041004 else :
0 commit comments