Skip to content

Commit b2287af

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ae3cd2f commit b2287af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/_pytest/assertion/truncate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def _should_truncate_item(item: Item) -> bool:
4545
if max_chars is not None:
4646
max_chars = int(max_chars)
4747

48-
return verbose < 2 and not util.running_on_ci() and (max_lines != 0 or max_chars != 0)
48+
return (
49+
verbose < 2 and not util.running_on_ci() and (max_lines != 0 or max_chars != 0)
50+
)
4951

5052

5153
def _truncate_explanation(

testing/test_assertion.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,7 @@ def test_many_lines():
14401440
(
14411441
(3, None, 3),
14421442
(4, None, 0),
1443-
(0, None, 0)
1444-
(None, 8, 6),
1443+
(0, None, 0)(None, 8, 6),
14451444
(None, 9, 0),
14461445
(None, 0, 0),
14471446
(0, 0, 0),

0 commit comments

Comments
 (0)