@@ -342,25 +342,25 @@ def test_groupby_raises_category(
342
342
"cummax" : (
343
343
(NotImplementedError , TypeError ),
344
344
"(category type does not support cummax operations|"
345
- + "category dtype not supported|"
346
- + "cummax is not supported for category dtype)" ,
345
+ "category dtype not supported|"
346
+ "cummax is not supported for category dtype)" ,
347
347
),
348
348
"cummin" : (
349
349
(NotImplementedError , TypeError ),
350
350
"(category type does not support cummin operations|"
351
- + "category dtype not supported|"
351
+ "category dtype not supported|"
352
352
"cummin is not supported for category dtype)" ,
353
353
),
354
354
"cumprod" : (
355
355
(NotImplementedError , TypeError ),
356
356
"(category type does not support cumprod operations|"
357
- + "category dtype not supported|"
357
+ "category dtype not supported|"
358
358
"cumprod is not supported for category dtype)" ,
359
359
),
360
360
"cumsum" : (
361
361
(NotImplementedError , TypeError ),
362
362
"(category type does not support cumsum operations|"
363
- + "category dtype not supported|"
363
+ "category dtype not supported|"
364
364
"cumsum is not supported for category dtype)" ,
365
365
),
366
366
"diff" : (
@@ -371,7 +371,7 @@ def test_groupby_raises_category(
371
371
"fillna" : (
372
372
TypeError ,
373
373
r"Cannot setitem on a Categorical with a new category \(0\), "
374
- + "set the categories first" ,
374
+ "set the categories first" ,
375
375
)
376
376
if not using_copy_on_write
377
377
else (None , "" ), # no-op with CoW
@@ -539,33 +539,33 @@ def test_groupby_raises_category_on_category(
539
539
"cummax" : (
540
540
(NotImplementedError , TypeError ),
541
541
"(cummax is not supported for category dtype|"
542
- + "category dtype not supported|"
543
- + "category type does not support cummax operations)" ,
542
+ "category dtype not supported|"
543
+ "category type does not support cummax operations)" ,
544
544
),
545
545
"cummin" : (
546
546
(NotImplementedError , TypeError ),
547
547
"(cummin is not supported for category dtype|"
548
- + "category dtype not supported|"
548
+ "category dtype not supported|"
549
549
"category type does not support cummin operations)" ,
550
550
),
551
551
"cumprod" : (
552
552
(NotImplementedError , TypeError ),
553
553
"(cumprod is not supported for category dtype|"
554
- + "category dtype not supported|"
554
+ "category dtype not supported|"
555
555
"category type does not support cumprod operations)" ,
556
556
),
557
557
"cumsum" : (
558
558
(NotImplementedError , TypeError ),
559
559
"(cumsum is not supported for category dtype|"
560
- + "category dtype not supported|"
561
- + "category type does not support cumsum operations)" ,
560
+ "category dtype not supported|"
561
+ "category type does not support cumsum operations)" ,
562
562
),
563
563
"diff" : (TypeError , "unsupported operand type" ),
564
564
"ffill" : (None , "" ),
565
565
"fillna" : (
566
566
TypeError ,
567
567
r"Cannot setitem on a Categorical with a new category \(0\), "
568
- + "set the categories first" ,
568
+ "set the categories first" ,
569
569
)
570
570
if not using_copy_on_write
571
571
else (None , "" ), # no-op with CoW
0 commit comments