Skip to content

Commit 95cb0d3

Browse files
committed
yapf
1 parent 00eac21 commit 95cb0d3

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pytest_trio/_tests/test_fixture_mistakes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,4 @@ async def test_whatever(async_fixture):
143143
result = testdir.runpytest()
144144

145145
result.assert_outcomes(failed=1)
146-
result.stdout.fnmatch_lines(
147-
["*async_fixture*cancelled the test*"]
148-
)
146+
result.stdout.fnmatch_lines(["*async_fixture*cancelled the test*"])

pytest_trio/_tests/test_fixture_ordering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,5 +328,5 @@ async def test_try(fixture):
328328
result = testdir.runpytest()
329329
result.assert_outcomes(passed=0, failed=1)
330330
result.stdout.fnmatch_lines_random([
331-
"*OOPS*",
331+
"*OOPS*",
332332
])

pytest_trio/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ async def _bootstrap_fixtures_and_run_test(**kwargs):
355355
test_ctx.error_list.append(
356356
RuntimeError(
357357
"{} cancelled the test but didn't "
358-
"raise an error"
359-
.format(fixture.name)
358+
"raise an error".format(fixture.name)
360359
)
361360
)
362361

0 commit comments

Comments
 (0)