Skip to content

Commit 01f491d

Browse files
committed
Remove Python 3.5 compatibility code
1 parent 301cef5 commit 01f491d

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

tests/test_trio_asyncio.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,16 @@ async def use_asyncio():
1010

1111

1212
@pytest.fixture()
13-
@async_generator
14-
async def asyncio_loop():
15-
async with trio_asyncio.open_loop() as loop:
16-
await yield_(loop)
17-
18-
19-
@pytest.fixture()
20-
@async_generator
21-
async def asyncio_fixture_with_fixtured_loop(asyncio_loop):
13+
async def asyncio_fixture_with_fixtured_loop(loop):
2214
await use_asyncio()
23-
await yield_()
15+
yield None
2416

2517

2618
@pytest.fixture()
27-
@async_generator
2819
async def asyncio_fixture_own_loop():
2920
async with trio_asyncio.open_loop():
3021
await use_asyncio()
31-
await yield_()
22+
yield None
3223

3324

3425
@pytest.mark.trio

0 commit comments

Comments
 (0)