async def METHOD_NAME(self, caplog: pytest.LogCaptureFixture, webbrowser_launch):
    nursery: trio.Nursery
    process: trio.Process
    async with webbrowser_launch() as (nursery, process):  # noqa: F841
        assert process.poll() is None, "process is still running"
    assert process.poll() == (1 if is_win32 else -SIGTERM), "Process has been terminated"
    assert [(record.name, record.levelname, record.msg) for record in caplog.records] == [
        ("streamlink.webbrowser.webbrowser", "debug", "Waiting for web browser process to terminate"),
    ]