Skip to content

Commit 9283d4d

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/_pytest/fixtures.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,10 @@ def write_fixture(fixture_def: FixtureDef[object]) -> None:
18321832
fixture_doc = inspect.getdoc(fixture_def.func)
18331833
if fixture_doc:
18341834
write_docstring(
1835-
tw, fixture_doc.split('\n\n', maxsplit=1)[0] if verbose <= 0 else fixture_doc
1835+
tw,
1836+
fixture_doc.split("\n\n", maxsplit=1)[0]
1837+
if verbose <= 0
1838+
else fixture_doc,
18361839
)
18371840
else:
18381841
tw.line(" no docstring available", red=True)
@@ -1914,7 +1917,9 @@ def _showfixtures_main(config: Config, session: "Session") -> None:
19141917
tw.write("\n")
19151918
doc = inspect.getdoc(fixturedef.func)
19161919
if doc:
1917-
write_docstring(tw, doc.split('\n\n', maxsplit=1)[0] if verbose <= 0 else doc)
1920+
write_docstring(
1921+
tw, doc.split("\n\n", maxsplit=1)[0] if verbose <= 0 else doc
1922+
)
19181923
else:
19191924
tw.line(" no docstring available", red=True)
19201925
tw.line()

0 commit comments

Comments
 (0)