Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ dev-pytest = [
"frequenz-repo-config[extra-lint-examples] == 0.9.1",
"pytest-mock == 3.12.0",
"pytest-asyncio == 0.23.5",
"async-solipsism == 0.5",
"async-solipsism == 0.6",
"time-machine == 2.14.0",
]
dev = [
Expand Down
10 changes: 4 additions & 6 deletions tests/test_frequenz_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@


# This method replaces the event loop for all tests in the file.
@fixture(scope="module")
def event_loop() -> Iterator[async_solipsism.EventLoop]:
"""Replace the loop with one that doesn't interact with the outside world."""
loop = async_solipsism.EventLoop()
yield loop
loop.close()
@fixture
def event_loop_policy() -> async_solipsism.EventLoopPolicy:
"""Return an event loop policy that uses the async solipsism event loop."""
return async_solipsism.EventLoopPolicy()


@fixture
Expand Down