@pytest.fixture
async def trio_kivy_app(request, nursery, _app_release_list, _app_release) -> AsyncUnitApp:
    'Fixture yielding a :class:`~pytest_kivy.app.AsyncUnitApp` using\n    explicitly trio as backend for the async library.\n\n    pytest-trio and trio must be installed, and ``trio_mode = true`` must be\n    set in pytest.ini.\n    '
    (cls, kwargs, app_cls, app_list) = _get_request_config(request, _app_release_list, _app_release)
    async with cls(nursery=nursery, async_lib='trio', **kwargs) as app:
        if (app_list is not None):
            app_list.append((weakref.ref(app), weakref.ref(request)))
        if (app_cls is not None):
            (await app(app_cls))
        app.raise_startup_exception()
        (yield app)
        (await app.wait_stop_app())
Fixture yielding a :class:`~pytest_kivy.app.AsyncUnitApp` using
explicitly trio as backend for the async library.

pytest-trio and trio must be installed, and ``trio_mode = true`` must be
set in pytest.ini.
@pytest.fixture
async def trio_kivy_app(request, nursery, _app_release_list, _app_release) -> AsyncUnitApp:
    'Fixture yielding a :class:`~pytest_kivy.app.AsyncUnitApp` using\n    explicitly trio as backend for the async library.\n\n    pytest-trio and trio must be installed, and ``trio_mode = true`` must be\n    set in pytest.ini.\n    '
    (cls, kwargs, app_cls, app_list) = _get_request_config(request, _app_release_list, _app_release)
    async with cls(nursery=nursery, async_lib='trio', **kwargs) as app:
        if (app_list is not None):
            app_list.append((weakref.ref(app), weakref.ref(request)))
        if (app_cls is not None):
            (await app(app_cls))
        app.raise_startup_exception()
        (yield app)
        (await app.wait_stop_app())