Skip to content

Commit 5c29275

Browse files
[pylint] Disable the only 'misplaced-bare-raise'
1 parent 162540d commit 5c29275

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,9 @@ disable = [
211211
"keyword-arg-before-vararg",
212212
"line-too-long",
213213
"method-hidden",
214-
"misplaced-bare-raise",
215214
"missing-docstring",
216215
"missing-timeout",
217-
"multiple-statements",
216+
"multiple-statements", # multiple-statements-on-one-line-colon (E701) from ruff
218217
"no-else-break",
219218
"no-else-continue",
220219
"no-else-raise",

src/_pytest/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def handleError(self, record: logging.LogRecord) -> None:
401401
# The default behavior of logging is to print "Logging error"
402402
# to stderr with the call stack and some extra details.
403403
# pytest wants to make such mistakes visible during testing.
404-
raise
404+
raise # pylint: disable=misplaced-bare-raise
405405

406406

407407
@final

0 commit comments

Comments
 (0)