Skip to content

Commit d8ffd87

Browse files
CoolCat467A5rocks
andcommitted
Revert formatting changes from prior noqa lines that exist no longer
Co-authored-by: A5rocks <[email protected]>
1 parent 287d690 commit d8ffd87

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

src/trio/_core/_tests/test_guest_mode.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ async def trio_return(in_host: InHost) -> str:
118118

119119
assert trivial_guest_run(trio_return) == "ok"
120120

121-
async def trio_fail(
122-
in_host: InHost,
123-
) -> NoReturn:
121+
async def trio_fail(in_host: InHost) -> NoReturn:
124122
raise KeyError("whoopsiedaisy")
125123

126124
with pytest.raises(KeyError, match="whoopsiedaisy"):

src/trio/_core/_tests/test_run.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,9 +1658,7 @@ async def check(spawn_fn: Callable[..., object]) -> None:
16581658
await check(_core.spawn_system_task)
16591659

16601660

1661-
async def test_current_effective_deadline(
1662-
mock_clock: _core.MockClock,
1663-
) -> None:
1661+
async def test_current_effective_deadline(mock_clock: _core.MockClock) -> None:
16641662
assert _core.current_effective_deadline() == inf
16651663

16661664
with _core.CancelScope(deadline=5) as scope1:

src/trio/_tests/test_fakenet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def test_msg_trunc() -> None:
6464
s2 = trio.socket.socket(type=trio.socket.SOCK_DGRAM)
6565
await s1.bind(("127.0.0.1", 0))
6666
await s2.sendto(b"xyz", s1.getsockname())
67-
_data, _addr = await s1.recvfrom(10)
67+
await s1.recvfrom(10)
6868

6969

7070
async def test_recv_methods() -> None:

src/trio/_tests/test_subprocess.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,10 +659,7 @@ async def test_for_leaking_fds() -> None:
659659
async def test_run_process_internal_error(monkeypatch: pytest.MonkeyPatch) -> None:
660660
# There's probably less extreme ways of triggering errors inside the nursery
661661
# in run_process.
662-
async def very_broken_open(
663-
*args: object,
664-
**kwargs: object,
665-
) -> str:
662+
async def very_broken_open(*args: object, **kwargs: object) -> str:
666663
return "oops"
667664

668665
monkeypatch.setattr(trio._subprocess, "open_process", very_broken_open)

0 commit comments

Comments
 (0)