Skip to content

Commit 40fba89

Browse files
committed
coverage: test no __await__ attribute case in Asyncio_Trio_Wrapper.__await__
1 parent b6f2c67 commit 40fba89

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/interop/test_adapter.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ async def test_asyncio_trio_adapted(self, loop):
105105
assert res == 8
106106
assert sth.flag == 2
107107

108+
@pytest.mark.trio
109+
async def test_asyncio_trio_adapted_no_loop(self, loop):
110+
"""Call asyncio from trio"""
111+
112+
sth = SomeThing(loop)
113+
res = await aio_as_trio(sth.dly_trio_adapted)
114+
assert res == 8
115+
assert sth.flag == 2
116+
108117
@pytest.mark.trio
109118
async def test_trio_asyncio_adapted(self, loop):
110119
sth = SomeThing(loop)

0 commit comments

Comments
 (0)