Skip to content

Commit 85075f4

Browse files
committed
update exception messages
1 parent c01c80b commit 85075f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/tests/indexes/categorical/test_category.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def test_disallow_addsub_ops(self, func, op_name):
327327
msg = "|".join(
328328
[
329329
rf"unsupported operand type\(s\) for [\+-]: {cat_or_list}",
330+
"Object with dtype category cannot perform the numpy op (add|subtract)",
330331
"operation 'r?(add|sub)' not supported for dtype 'str' "
331332
"with dtype 'category'",
332333
]

0 commit comments

Comments
 (0)