saltstack/salt — pull request #1558 by baijum (2012-07-01 13:49:22+00:00)
Title: sys.stdout could be StringIO or fake object

`sys.stdout.fileno` attribute is not available for StringIO.
Changing sys.stdout is convenient for capturing test results.

There is an error in Jenkins like this:
http://jenkins.saltstack.org/job/all_tests_ubuntu1204_32bit/251/testReport/integration.runners.manage/ManageTest/test_down/
This happens because the test runner (XML output) changes the sys.stdout to a StringIO