nose
nose copied to clipboard
AttributeError: '_io.StringIO' object has no attribute 'buffer'
In python 3, sys.stdout and sys.stderr have a buffer attribute that can be used to write raw bytes. When nose wraps them, it doesn't provide such an attribute, which breaks code that uses it.
Python library documentation for io.TextIOBase:
buffer
The underlying binary buffer (a BufferedIOBase instance) that TextIOBase deals with. This is not part of the TextIOBase API and may not exist in some implementations.