Fix encoding issue with collateral damages...
Better test for output stream existence
Another fix for outputter reliability
display traceback in test error
pep8
tolerant encoding print in print_cli
Merge pull request #16602 from rallytime/bp-16572

Backport #16572 to 2014.7