-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
pytest.call_nocapture(func, *k, **kw) #167
Comments
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt):
could have a better name |
Hmmm in order to suspend capture, one would have to have access to the How about adding context manager support to def test_foo(capsys):
print('captured')
with capsys.disabled():
print('directly to stdout, regardless of the "-s" flag')
print('captured again') ? |
nice idea 👍 |
why would the |
basically all debuggers currently break due to missing integration (with the notable exception of pdbpp) |
Another related issue is if you're mucking about with terminal settings as detailed in #1182 (closed as it should be resolved by the solution being discussed here). Because the object responsible for capturing doesn't implement the full file API (specifically Having the ability to disable capturing for a specific test would also solve this problem. |
Closing this one since its badly scoped, capture related items will happen later |
Originally reported by: Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt)
would be usefull as a way for pthers to integrate other debuggers/tools
The text was updated successfully, but these errors were encountered: