Skip to content

Commit 0c8f6b6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 3699bef commit 0c8f6b6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/test_primitives/test_reawaitable/test_reawaitable_concurrency.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ async def test_concurrent_awaitable():
1515

1616
async def await_reawaitable():
1717
return await test_target
18+
1819
async with anyio.create_task_group() as tg:
1920
task1 = tg.start_soon(await_reawaitable)
2021
task2 = tg.start_soon(await_reawaitable)
@@ -27,15 +28,15 @@ async def test_reawaitable_decorator():
2728
@reawaitable
2829
async def decorated_coro():
2930
await anyio.sleep(0.1)
30-
return "decorated"
31+
return 'decorated'
3132

3233
instance = decorated_coro()
3334

3435
# Test multiple awaits
3536
result1 = await instance
3637
result2 = await instance
3738

38-
assert result1 == "decorated"
39+
assert result1 == 'decorated'
3940
assert result1 == result2
4041

4142
# Test concurrent awaits
@@ -50,15 +51,15 @@ async def await_decorated():
5051
@pytest.mark.anyio
5152
async def test_reawaitable_repr():
5253
"""Test the __repr__ method of ReAwaitable."""
53-
54+
5455
async def test_func():
5556
return 1
56-
57+
5758
coro = test_func()
5859
reawaitable = ReAwaitable(coro)
59-
60+
6061
# Test the representation
6162
assert repr(reawaitable) == repr(coro)
62-
63+
6364
# Ensure the coroutine is properly awaited
6465
await reawaitable

0 commit comments

Comments
 (0)