Skip to content

Conversation

@Bubble-Interface
Copy link
Contributor

@Bubble-Interface Bubble-Interface commented Dec 20, 2025

closes #13731

Clarify in the capturing tutorial that using capture fixtures such as capsys or capfd re-enables capturing for the duration of the test, even when global capturing is disabled via -s or --capture=no.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Dec 20, 2025
@Bubble-Interface
Copy link
Contributor Author

The docs build failure appears to be unrelated to this change.
It looks like an incompatibility between Sphinx 9.0.4 and sphinxcontrib-trio (KeyError: 'autofunction').
Happy to rebase or update once the docs toolchain is fixed.

@Bubble-Interface
Copy link
Contributor Author

@Zac-HD Could you please check if that what you had in mind for the issue?

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - thanks for the PR, @Bubble-Interface!

(the CI failure looks unrelated to me)

@nicoddemus
Copy link
Member

The CI failure is being addressed in #14067.

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nicoddemus nicoddemus merged commit 8f5b07d into pytest-dev:main Dec 28, 2025
33 checks passed
@nicoddemus nicoddemus added the backport 9.0.x apply to PRs at any point; backports the changes to the 9.0.x branch label Dec 28, 2025
@patchback
Copy link

patchback bot commented Dec 28, 2025

Backport to 9.0.x: 💚 backport PR created

✅ Backport PR branch: patchback/backports/9.0.x/8f5b07d87bf803622bb96227ed939f3c95f8809b/pr-14053

Backported as #14073

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Dec 28, 2025
Clarify in the capturing tutorial that using capture fixtures such as capsys or capfd re-enables capturing for the duration of the test, even when global capturing is disabled via `-s` or `--capture=no`.

Closes #13731

(cherry picked from commit 8f5b07d)
nicoddemus pushed a commit that referenced this pull request Dec 28, 2025
Clarify in the capturing tutorial that using capture fixtures such as capsys or capfd re-enables capturing for the duration of the test, even when global capturing is disabled via `-s` or `--capture=no`.

Closes #13731

(cherry picked from commit 8f5b07d)

Co-authored-by: Bubble-Interface <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 9.0.x apply to PRs at any point; backports the changes to the 9.0.x branch bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

disabling capture in cli doesn't work

3 participants