Skip to content

Commit fb5cc36

Browse files
committed
Simplify asyncio.gather() call
Using `*[...]` is equivalent to `...`, so we just unwrap it. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 84a0c0f commit fb5cc36

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/timeseries/_battery_pool/test_battery_pool_control_methods.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,7 @@ async def mocks(mocker: MockerFixture) -> AsyncIterator[Mocks]:
7979
dp._battery_power_wrapper.status_channel.new_sender(),
8080
)
8181
finally:
82-
_ = await asyncio.gather(
83-
*[
84-
dp._stop(),
85-
streamer.stop(),
86-
mockgrid.cleanup(),
87-
]
88-
)
82+
await asyncio.gather(dp._stop(), streamer.stop(), mockgrid.cleanup())
8983

9084

9185
class TestBatteryPoolControl:

0 commit comments

Comments
 (0)