File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3535
3636 @pytest .mark .skipif (sys .version_info < (3 , 5 ), reason = "requires Python 3.5+" )
3737 @pytest .mark .asyncio (forbid_global_loop = True )
38- def test_asyncio_component (event_loop ):
38+ async def test_asyncio_component (event_loop ):
3939 orig_loop = txaio .config .loop
4040 txaio .config .loop = event_loop
4141
@@ -72,11 +72,11 @@ def done(f):
7272 txaio .config .loop = orig_loop
7373 assert comp ._done_f is None
7474 f .add_done_callback (done )
75- return finished
75+ await finished
7676
7777 @pytest .mark .skipif (sys .version_info < (3 , 5 ), reason = "requires Python 3.5+" )
7878 @pytest .mark .asyncio (forbid_global_loop = True )
79- def test_asyncio_component_404 (event_loop ):
79+ async def test_asyncio_component_404 (event_loop ):
8080 """
8181 If something connects but then gets aborted, it should still try
8282 to re-connect (in real cases this could be e.g. wrong path,
@@ -151,4 +151,4 @@ def done(f):
151151 finished .set_result (None )
152152 txaio .config .loop = orig_loop
153153 f .add_done_callback (done )
154- return finished
154+ await finished
You can’t perform that action at this time.
0 commit comments