nose-devs/nose — Issue #6: Patch: stdout wrapper breaks some subprocess calls
Author: jpellerin
Created: 2011-12-14 15:54:23+00:00
State: open

Currently nose uses StringIO directly as a stdout wrapper which works fine
99% of the time.

subprocess.Popen's default stdout is sys.stdout. subprocess assumes this is
a real filehandler and tends to check sys.stdout.fileno(). Since the method
doesn't exist, bad things happen.

Attached is a patch that removes the direct use of StringIO with a Buffer
class that has a fileno() method that returns 1 the way stdout normall does.

_SpoofOut has also been modified to provide this method.

I ran all the unittests, they all still pass.

Google Code Info:
Issue #: 290
Author: mikeal.rogers
Created On: 2009-09-08T00:29:05.000Z
Closed On: