Skip to content

Commit 92a64c7

Browse files
CLN: GH29547 replace old string formatting (#32029)
1 parent 206a547 commit 92a64c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/arrays/categorical/test_analytics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ class TestCategoricalAnalytics:
1515
def test_min_max_not_ordered_raises(self, aggregation):
1616
# unordered cats have no min/max
1717
cat = Categorical(["a", "b", "c", "d"], ordered=False)
18-
msg = "Categorical is not ordered for operation {}"
18+
msg = f"Categorical is not ordered for operation {aggregation}"
1919
agg_func = getattr(cat, aggregation)
2020

21-
with pytest.raises(TypeError, match=msg.format(aggregation)):
21+
with pytest.raises(TypeError, match=msg):
2222
agg_func()
2323

2424
def test_min_max_ordered(self):

0 commit comments

Comments
 (0)