File tree 1 file changed +4
-2
lines changed
pandas/tests/indexes/categorical
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ def test_take_fill_value(self):
65
65
with pytest .raises (ValueError , match = msg ):
66
66
idx .take (np .array ([1 , 0 , - 5 ]), fill_value = True )
67
67
68
- with pytest .raises (IndexError ):
68
+ msg = "index -5 is out of bounds for (axis 0 with )?size 3"
69
+ with pytest .raises (IndexError , match = msg ):
69
70
idx .take (np .array ([1 , - 5 ]))
70
71
71
72
def test_take_fill_value_datetime (self ):
@@ -104,7 +105,8 @@ def test_take_fill_value_datetime(self):
104
105
with pytest .raises (ValueError , match = msg ):
105
106
idx .take (np .array ([1 , 0 , - 5 ]), fill_value = True )
106
107
107
- with pytest .raises (IndexError ):
108
+ msg = "index -5 is out of bounds for (axis 0 with )?size 3"
109
+ with pytest .raises (IndexError , match = msg ):
108
110
idx .take (np .array ([1 , - 5 ]))
109
111
110
112
def test_take_invalid_kwargs (self ):
You can’t perform that action at this time.
0 commit comments