gabrielfalcao/lettuce — Issue #216: Last line of stdout/stderr is chopped/overwritten
Author: SystemParadox
Created: 2012-01-10 11:02:14+00:00
State: open

Lettuce appears to be chopping or overwriting the last line of any output to stderr/stdout. Given:

```python
@step('show missing output')
def show_missing_output(step):
print >> sys.stderr, 'stderrA'
print 'stdoutA'
print 'stdoutB'
print >> sys.stderr, 'stderrB'
```

Only the first 3 lines will be shown. It does not matter what order the lines are in, nor whether it is stderr or stdout or a mix of both, the last line of the combined output is either never printed or gets overwritten by lettuce's own output.

I'm mainly using the django harvest command, but this behaviour is identical when using lettuce directly.

Thanks.