def test_double_start_finished(qtbot, proc, py_proc):
 with qtbot.waitSignals([proc.started, proc.finished], timeout=10000, order='strict'):
  argv = py_proc('import sys; sys.exit(0)')
  proc.start(*argv)
 with qtbot.waitSignals([proc.started, proc.finished], timeout=10000, order='strict'):
  argv = py_proc('import sys; sys.exit(0)')
  proc.start(*argv)

def test_double_start_finished ( qtbot , proc , py_proc ) : with qtbot . waitSignals ( [ proc . started , proc . finished ] , timeout = 10000 , order = 'strict' ) : argv = py_proc ( 'import sys; sys.exit(0)' ) proc . start ( * argv ) with qtbot . waitSignals ( [ proc . started , proc . finished ] , timeout = 10000 , order = 'strict' ) : argv = py_proc ( 'import sys; sys.exit(0)' ) proc . start ( * argv )
test starting a guiprocess twice .