@@ -1507,13 +1507,13 @@ def test_any_all_categorical_dtype_nuisance_column(self, method):
1507
1507
df = ser .to_frame ()
1508
1508
1509
1509
# Double-check the Series behavior is to raise
1510
- with pytest .raises (TypeError , match = "does not implement reduction" ):
1510
+ with pytest .raises (TypeError , match = "does not support reduction" ):
1511
1511
getattr (ser , method )()
1512
1512
1513
- with pytest .raises (TypeError , match = "does not implement reduction" ):
1513
+ with pytest .raises (TypeError , match = "does not support reduction" ):
1514
1514
getattr (np , method )(ser )
1515
1515
1516
- with pytest .raises (TypeError , match = "does not implement reduction" ):
1516
+ with pytest .raises (TypeError , match = "does not support reduction" ):
1517
1517
getattr (df , method )(bool_only = False )
1518
1518
1519
1519
# With bool_only=None, operating on this column raises and is ignored,
@@ -1537,10 +1537,10 @@ def test_median_categorical_dtype_nuisance_column(self):
1537
1537
ser = df ["A" ]
1538
1538
1539
1539
# Double-check the Series behavior is to raise
1540
- with pytest .raises (TypeError , match = "does not implement reduction" ):
1540
+ with pytest .raises (TypeError , match = "does not support reduction" ):
1541
1541
ser .median ()
1542
1542
1543
- with pytest .raises (TypeError , match = "does not implement reduction" ):
1543
+ with pytest .raises (TypeError , match = "does not support reduction" ):
1544
1544
df .median (numeric_only = False )
1545
1545
1546
1546
with tm .assert_produces_warning (
@@ -1553,7 +1553,7 @@ def test_median_categorical_dtype_nuisance_column(self):
1553
1553
# same thing, but with an additional non-categorical column
1554
1554
df ["B" ] = df ["A" ].astype (int )
1555
1555
1556
- with pytest .raises (TypeError , match = "does not implement reduction" ):
1556
+ with pytest .raises (TypeError , match = "does not support reduction" ):
1557
1557
df .median (numeric_only = False )
1558
1558
1559
1559
with tm .assert_produces_warning (
0 commit comments