File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ dev-pytest = [
8888 " frequenz-repo-config[extra-lint-examples] == 0.9.1" ,
8989 " pytest-mock == 3.12.0" ,
9090 " pytest-asyncio == 0.23.5" ,
91- " async-solipsism == 0.5 " ,
91+ " async-solipsism == 0.6 " ,
9292 " time-machine == 2.14.0" ,
9393]
9494dev = [
Original file line number Diff line number Diff line change 2424
2525
2626# This method replaces the event loop for all tests in the file.
27- @fixture (scope = "module" )
28- def event_loop () -> Iterator [async_solipsism .EventLoop ]:
29- """Replace the loop with one that doesn't interact with the outside world."""
30- loop = async_solipsism .EventLoop ()
31- yield loop
32- loop .close ()
27+ @fixture
28+ def event_loop_policy () -> async_solipsism .EventLoopPolicy :
29+ """Return an event loop policy that uses the async solipsism event loop."""
30+ return async_solipsism .EventLoopPolicy ()
3331
3432
3533@fixture
You can’t perform that action at this time.
0 commit comments