Skip to content

capsys: Output is not reported after failing test that called capsys.readouterr() #623

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

Closed
pytestbot opened this issue Oct 26, 2014 · 1 comment
Labels
type: bug problem that needs to be addressed

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Lutz Prechelt (BitBucket: prechelt, GitHub: prechelt)


I see that it might be useful to be able to suppress output reporting when using readouterr().
But that this happens automatically and there is no obvious way to turn reporting back on is both surprising and, I think, inconvenient.
See a detailed description here:
http://stackoverflow.com/questions/26561822/pytest-capsys-checking-output-and-getting-it-reported


@pytestbot pytestbot added the type: bug problem that needs to be addressed label Jun 15, 2015
@nicoddemus
Copy link
Member

I think this is working as designed, and it can be disabled temporarily with the capsys.disabled() context manager. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

2 participants