Skip to content

Commit 31d416d

Browse files
committed
Revert other formatting in same files
1 parent d8ffd87 commit 31d416d

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

src/trio/_core/_tests/test_guest_mode.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,7 @@ async def synchronize() -> None:
254254
def test_warn_set_wakeup_fd_overwrite() -> None:
255255
assert signal.set_wakeup_fd(-1) == -1
256256

257-
async def trio_main(
258-
in_host: InHost,
259-
) -> str:
257+
async def trio_main(in_host: InHost) -> str:
260258
return "ok"
261259

262260
a, b = socket.socketpair()
@@ -298,9 +296,7 @@ async def trio_main(
298296
signal.set_wakeup_fd(a.fileno())
299297
try:
300298

301-
async def trio_check_wakeup_fd_unaltered(
302-
in_host: InHost,
303-
) -> str:
299+
async def trio_check_wakeup_fd_unaltered(in_host: InHost) -> str:
304300
fd = signal.set_wakeup_fd(-1)
305301
assert fd == a.fileno()
306302
signal.set_wakeup_fd(fd)

src/trio/_core/_tests/test_run.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,9 +2408,7 @@ def test_async_function_implemented_in_C() -> None:
24082408
# These used to crash because we'd try to mutate the coroutine object's
24092409
# cr_frame, but C functions don't have Python frames.
24102410

2411-
async def agen_fn(
2412-
record: list[str],
2413-
) -> AsyncIterator[None]:
2411+
async def agen_fn(record: list[str]) -> AsyncIterator[None]:
24142412
assert not _core.currently_ki_protected()
24152413
record.append("the generator ran")
24162414
yield
@@ -2714,10 +2712,7 @@ def test_trio_run_strict_before_started(
27142712
else:
27152713
raiser_exc = ValueError()
27162714

2717-
async def raiser(
2718-
*,
2719-
task_status: _core.TaskStatus[None],
2720-
) -> None:
2715+
async def raiser(*, task_status: _core.TaskStatus[None]) -> None:
27212716
if raise_after_started:
27222717
task_status.started()
27232718
raise raiser_exc
@@ -2769,9 +2764,7 @@ async def test_internal_error_old_nursery_multiple_tasks() -> None:
27692764
async def error_func() -> None:
27702765
raise ValueError
27712766

2772-
async def spawn_tasks_in_old_nursery(
2773-
task_status: _core.TaskStatus[None],
2774-
) -> None:
2767+
async def spawn_tasks_in_old_nursery(task_status: _core.TaskStatus[None]) -> None:
27752768
old_nursery = _core.current_task().parent_nursery
27762769
assert old_nursery is not None
27772770
old_nursery.start_soon(error_func)

0 commit comments

Comments
 (0)