File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,8 @@ def _bins_to_cuts(
400
400
)
401
401
elif labels :
402
402
raise ValueError (
403
- "User desired bin labels must be passed in as an argument, not just `True`"
403
+ "User desired bin labels must be passed in as an argument, "
404
+ "not just `True`"
404
405
)
405
406
elif is_list_like (labels ):
406
407
if len (labels ) != len (bins ) - 1 :
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ def test_qcut_labels_true():
134
134
# issue 13318
135
135
values = range (5 )
136
136
msg = "User desired bin labels must be passed in as an argument, not just `True`"
137
- with pytest .raises (ValueError , match = msg ) as w :
137
+ with pytest .raises (ValueError , match = msg ):
138
138
qcut (values , 4 , labels = True )
139
139
140
140
You can’t perform that action at this time.
0 commit comments