[test] yield_fixture is deprecated

This commit is contained in:
lilydjwg 2017-12-22 14:15:05 +08:00
parent 96b3d83849
commit 7133ffc1a0

View File

@ -17,7 +17,7 @@ async def get_version():
return __call__
@pytest.yield_fixture(scope="module")
@pytest.fixture(scope="module")
def event_loop(request):
"""Override pytest-asyncio's event_loop fixture,
Don't create an instance of the default event loop for each test case.