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 35
35
36
36
@pytest .mark .skipif (sys .version_info < (3 , 5 ), reason = "requires Python 3.5+" )
37
37
@pytest .mark .asyncio (forbid_global_loop = True )
38
- def test_asyncio_component (event_loop ):
38
+ async def test_asyncio_component (event_loop ):
39
39
orig_loop = txaio .config .loop
40
40
txaio .config .loop = event_loop
41
41
@@ -72,11 +72,11 @@ def done(f):
72
72
txaio .config .loop = orig_loop
73
73
assert comp ._done_f is None
74
74
f .add_done_callback (done )
75
- return finished
75
+ await finished
76
76
77
77
@pytest .mark .skipif (sys .version_info < (3 , 5 ), reason = "requires Python 3.5+" )
78
78
@pytest .mark .asyncio (forbid_global_loop = True )
79
- def test_asyncio_component_404 (event_loop ):
79
+ async def test_asyncio_component_404 (event_loop ):
80
80
"""
81
81
If something connects but then gets aborted, it should still try
82
82
to re-connect (in real cases this could be e.g. wrong path,
@@ -151,4 +151,4 @@ def done(f):
151
151
finished .set_result (None )
152
152
txaio .config .loop = orig_loop
153
153
f .add_done_callback (done )
154
- return finished
154
+ await finished
You can’t perform that action at this time.
0 commit comments