def METHOD_NAME(qtbot, py_proc, runner, caplog):
    cmd, args = py_proc(r"""
        import sys, os, json
        with open(os.environ['QUTE_FIFO'], 'w') as f:
            json.dump(os.environ['QUTE_TEXT'], f)
            f.write('\n')
        sys.exit(1)
    """)
    with caplog.at_level(logging.ERROR):
        with qtbot.wait_signal(runner.finished, timeout=10000):
            with qtbot.wait_signal(runner.got_cmd, timeout=10000) as blocker:
                runner.prepare_run(cmd, *args)
                runner.store_text('Hello World')
                runner.store_html('')
    data = json.loads(blocker.args[0])
    assert not pathlib.Path(data).exists()