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

Wrapping print builtin #74

Open
jayvdb opened this issue Sep 6, 2019 · 0 comments
Open

Wrapping print builtin #74

jayvdb opened this issue Sep 6, 2019 · 0 comments

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Sep 6, 2019

The next component of #59 is coala's context managers that replace the print builtin.

It is a bit buggy, as explained at https://gitlab.com/coala/coala-utils/issues/93

The use case is when interacting with a running application where references to the real sys streams have been added to various objects , and the test logic does not want to, or can not, destroy everything before the test. And the app code uses print(..., file=stream). If it uses stream.write, this wont help.

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

No branches or pull requests

2 participants