{"issue":{"created_at":"2011-12-14T15:54:23Z","state":"open","updated_at":"2011-12-14T15:54:26Z","user":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":7,"body":"Currently nose uses StringIO directly as a stdout wrapper which works fine\n99% of the time.\n\nsubprocess.Popen's default stdout is sys.stdout. subprocess assumes this is\na real filehandler and tends to check sys.stdout.fileno(). Since the method\ndoesn't exist, bad things happen.\n\nAttached is a patch that removes the direct use of StringIO with a Buffer\nclass that has a fileno() method that returns 1 the way stdout normall does.\n\n_SpoofOut has also been modified to provide this method.\n\nI ran all the unittests, they all still pass.\n\nGoogle Code Info:\nIssue #: 290\nAuthor: mikeal.rogers\nCreated On: 2009-09-08T00:29:05.000Z\nClosed On: ","assignee":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2553187,"labels":[],"number":6,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Patch: stdout wrapper breaks some subprocess calls","html_url":"https://github.com/nose-devs/nose/issues/6","closed_at":null,"url":"https://api.github.com/repos/nose-devs/nose/issues/6","milestone":null},"action":"created","comment":{"created_at":"2011-12-14T15:54:26Z","updated_at":"2011-12-14T15:54:26Z","user":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"yes doctest.py from stdlib defines its own _SpoofOut \ndoing this:\n{{{\nfrom nose.ext.dtcompat import _SpoofOut\ndoctest._SpoofOut = _SpoofOut\n}}}\n\nat the top of my code works for me. (i realize it's probably a bad idea for a general \nsolution)\nthanks.\n\nGoogle Code Info:\nAuthor: bpederse\nCreated On: 2009-12-14T21:01:29.000Z","id":3141452,"url":"https://api.github.com/repos/nose-devs/nose/issues/comments/3141452"}}