@@ -197,7 +197,7 @@ def tests_raises_on_nuisance(test_frame):
197
197
tm .assert_frame_equal (result , expected )
198
198
199
199
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->" )
201
201
with pytest .raises (TypeError , match = msg ):
202
202
r .mean ()
203
203
result = r .mean (numeric_only = True )
@@ -948,7 +948,7 @@ def test_frame_downsample_method(method, numeric_only, expected_data):
948
948
if isinstance (expected_data , str ):
949
949
if method in ("var" , "mean" , "median" , "prod" ):
950
950
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->" )
952
952
else :
953
953
klass = ValueError
954
954
msg = expected_data
@@ -998,7 +998,7 @@ def test_series_downsample_method(method, numeric_only, expected_data):
998
998
with pytest .raises (TypeError , match = msg ):
999
999
func (** kwargs )
1000
1000
elif method == "prod" :
1001
- msg = re .escape ("agg function failed [how->prod,dtype->object] " )
1001
+ msg = re .escape ("agg function failed [how->prod,dtype->" )
1002
1002
with pytest .raises (TypeError , match = msg ):
1003
1003
func (** kwargs )
1004
1004
else :
0 commit comments