Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glandium opened this issue Oct 11, 2019 · 1 comment
Open

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

glandium opened this issue Oct 11, 2019 · 1 comment

Comments

@glandium
Copy link

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.

@dirkf
Copy link

dirkf commented Sep 26, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants