-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add disabled() method to capsys and capfd #1600
Add disabled() method to capsys and capfd #1600
Conversation
e179bc4
to
4a3d57f
Compare
Can you check it against xdist? |
I like this! It'd also make it easier to add an uncaptured |
Nice idea on |
Good thinking, will do it later. |
Testing with xdist everything seems to work: import pytest
@pytest.mark.parametrize('i', list(range(100)))
def test(i, capsys):
with capsys.disabled():
print(i, 'hey')
The output does not show, but neither does it show if you pass |
4a3d57f
to
72bf11c
Compare
Added |
Wanted to get feedback if I should continue working on this.
Missing docs mostly
Fix #1599