Skip to content

Commit 7c7d565

Browse files
committed
more linting fixes
1 parent 40634ac commit 7c7d565

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pandas/core/reshape/tile.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ def _bins_to_cuts(
400400
)
401401
elif labels:
402402
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`"
404405
)
405406
elif is_list_like(labels):
406407
if len(labels) != len(bins) - 1:

pandas/tests/reshape/test_qcut.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_qcut_labels_true():
134134
# issue 13318
135135
values = range(5)
136136
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):
138138
qcut(values, 4, labels=True)
139139

140140

0 commit comments

Comments
 (0)