Skip to content

Commit 0e30148

Browse files
committed
Fix py35 compat
1 parent 95cb0d3 commit 0e30148

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pytest_trio/_tests/test_fixture_mistakes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ def test_fixture_cancels_test_but_doesnt_raise(testdir, enable_trio_mode):
127127
"""
128128
import pytest
129129
import trio
130+
from async_generator import async_generator, yield_
130131
131132
@pytest.fixture
133+
@async_generator
132134
async def async_fixture():
133135
with trio.CancelScope() as cscope:
134136
cscope.cancel()
135-
yield
137+
await yield_()
136138
137139
138140
async def test_whatever(async_fixture):

0 commit comments

Comments
 (0)