def test_double_start(qtbot, proc, py_proc):
 with qtbot.waitSignal(proc.started, timeout=10000):
  argv = py_proc('import time; time.sleep(10)')
  proc.start(*argv)
 with pytest.raises(ValueError):
  proc.start('', [])

def test_double_start ( qtbot , proc , py_proc ) : with qtbot . waitSignal ( proc . started , timeout = 10000 ) : argv = py_proc ( 'import time; time.sleep(10)' ) proc . start ( * argv ) with pytest . raises ( ValueError ) : proc . start ( '' , [ ] )
test starting a guiprocess twice .