File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -511,13 +511,13 @@ def test_replace_compiled_regex(self):
511
511
values = Series (['fooBAD__barBAD__bad' , NA ])
512
512
pat = re .compile (r'BAD[_]*' )
513
513
514
- with tm .assertRaisesRegexp (ValueError , "case and flags must be" ):
514
+ with tm .assertRaisesRegexp (ValueError , "case and flags cannot be" ):
515
515
result = values .str .replace (pat , '' , flags = re .IGNORECASE )
516
516
517
- with tm .assertRaisesRegexp (ValueError , "case and flags must be" ):
517
+ with tm .assertRaisesRegexp (ValueError , "case and flags cannot be" ):
518
518
result = values .str .replace (pat , '' , case = False )
519
519
520
- with tm .assertRaisesRegexp (ValueError , "case and flags must be" ):
520
+ with tm .assertRaisesRegexp (ValueError , "case and flags cannot be" ):
521
521
result = values .str .replace (pat , '' , case = True )
522
522
523
523
# test with callable
You can’t perform that action at this time.
0 commit comments