Skip to content

Commit 9edfffd

Browse files
committed
Fix lint
1 parent 855992a commit 9edfffd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/test_trio_asyncio.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ async def test_cancel_loop_with_tasks(autojump_clock, shield, body_raises):
127127

128128
with catcher, trio.move_on_after(1.25) as scope:
129129
async with trio_asyncio.open_loop():
130+
130131
async def trio_task():
131132
try:
132133
with trio.CancelScope(shield=shield):
@@ -168,7 +169,10 @@ async def unshield_later():
168169
record.append("toplevel done")
169170

170171
assert record == [
171-
"trio_task done at", trio.current_time(), "aio_task done", "toplevel done"
172+
"trio_task done at",
173+
trio.current_time(),
174+
"aio_task done",
175+
"toplevel done",
172176
]
173177
assert trio.current_time() == 1.5 + (shield * 0.5)
174178
assert scope.cancelled_caught == (not shield)

trio_asyncio/_loop.py

+2
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ async def async_main(*args):
494494
# into its body.
495495
forward_cancel_scope = trio.CancelScope()
496496
with trio.CancelScope() as body_scope:
497+
497498
@loop_nursery.start_soon
498499
async def forward_cancellation():
499500
try:
@@ -524,6 +525,7 @@ async def forward_cancellation():
524525
# stops (due to someone else calling stop()) before
525526
# that.
526527
async with trio.open_nursery() as sync_nursery:
528+
527529
@sync_nursery.start_soon
528530
async def wait_for_sync():
529531
if not loop.is_closed():

0 commit comments

Comments
 (0)