File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -197,13 +197,6 @@ async def run_asyncio_trio(self, loop):
197
197
assert res == 8
198
198
assert sth .flag == 2
199
199
200
- async def run_asyncio_trio_adapted (self , loop ):
201
- """Call asyncio from trio"""
202
- sth = SomeThing (loop )
203
- res = await sth .dly_trio_adapted ()
204
- assert res == 8
205
- assert sth .flag == 2
206
-
207
200
@pytest .mark .trio
208
201
async def test_asyncio_trio (self , loop ):
209
202
await allow_asyncio (self .run_asyncio_trio , loop )
@@ -230,6 +223,16 @@ async def run_trio_asyncio_future(self, loop):
230
223
async def test_trio_asyncio_future (self , loop ):
231
224
await allow_asyncio (self .run_trio_asyncio_future , loop )
232
225
226
+ async def run_trio_asyncio_adapted (self , loop ):
227
+ sth = SomeThing (loop )
228
+ res = await sth .dly_asyncio_adapted ()
229
+ assert res == 4
230
+ assert sth .flag == 1
231
+
232
+ @pytest .mark .trio
233
+ async def test_trio_asyncio_adapted (self , loop ):
234
+ await allow_asyncio (self .run_trio_asyncio_adapted , loop )
235
+
233
236
async def run_trio_asyncio_iter (self , loop ):
234
237
sth = SomeThing (loop )
235
238
n = 0
You can’t perform that action at this time.
0 commit comments