def test_quteprocess_quitting(qtbot, quteproc_process):
 with qtbot.waitSignal(quteproc_process.proc.finished, timeout=15000):
  quteproc_process.send_cmd(':quit')
 with pytest.raises(testprocess.ProcessExited):
  quteproc_process.after_test()

def test_quteprocess_quitting ( qtbot , quteproc_process ) : with qtbot . waitSignal ( quteproc_process . proc . finished , timeout = 15000 ) : quteproc_process . send_cmd ( ':quit' ) with pytest . raises ( testprocess . ProcessExited ) : quteproc_process . after_test ( )
when qutebrowser quits .