Fix Python 3 test failure in testBufferOutputAddErrorOrFailure

--HG--
branch : py2_and_py3_single_source