def test_no_ready_python_process(noready_pyproc):
 with pytest.raises(testprocess.ProcessExited):
  with stopwatch(max_ms=5000):
   noready_pyproc.start()

def test_no_ready_python_process ( noready_pyproc ) : with pytest . raises ( testprocess . ProcessExited ) : with stopwatch ( max_ms = 5000 ) : noready_pyproc . start ( )
when a process quits immediately .