nose icon indicating copy to clipboard operation
nose copied to clipboard

AttributeError: '_io.StringIO' object has no attribute 'buffer'

Open glandium opened this issue 6 years ago • 1 comments

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.

glandium avatar Oct 11 '19 00:10 glandium

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.

dirkf avatar Sep 26 '22 04:09 dirkf