@pytest.mark.qt_log_ignore('QIODevice::read.*: WriteOnly device')
def test_start_mode(proc, qtbot, py_proc):
 with qtbot.waitSignals([proc.started, proc.finished], timeout=10000, order='strict'):
  argv = py_proc("import sys; print('test'); sys.exit(0)")
  proc.start(mode=QIODevice.NotOpen, *argv)
 assert (not proc._proc.readAll())

@ pytest . mark . qt_log_ignore ( 'QIODevice::read.*: WriteOnly device' ) def test_start_mode ( proc , qtbot , py_proc ) : with qtbot . waitSignals ( [ proc . started , proc . finished ] , timeout = 10000 , order = 'strict' ) : argv = py_proc ( "import sys; print('test'); sys.exit(0)" ) proc . start ( mode = QIODevice . NotOpen , * argv ) assert ( not proc . _proc . readAll ( ) )
test simply starting a process with mode parameter .