Skip to content

Commit 94d5b1f

Browse files
committed
Further code style fixes in tests
1 parent 4d646e9 commit 94d5b1f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_primitives/test_reawaitable/test_reawaitable_concurrency.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ async def test_concurrent_awaitable():
2424
tg.start_soon(await_helper, test_target)
2525

2626

27-
async def _test_coro(): # noqa: WPS430
28-
await anyio.sleep(0.1)
29-
return "decorated"
30-
31-
3227
@pytest.mark.anyio # noqa: WPS210
3328
async def test_reawaitable_decorator():
3429
"""Test the reawaitable decorator with concurrent awaits."""
35-
decorated = reawaitable(_test_coro)
30+
31+
async def test_coro(): # noqa: WPS430
32+
await anyio.sleep(0.1)
33+
return "decorated"
34+
35+
decorated = reawaitable(test_coro)
3636
instance = decorated()
3737

3838
# Test multiple awaits

0 commit comments

Comments
 (0)