We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56a5dbe commit 07b7b6fCopy full SHA for 07b7b6f
src/_pytest/capture.py
@@ -152,6 +152,13 @@ def read_global_capture(self):
152
def _capturing_for_request(
153
self, request: FixtureRequest
154
) -> Generator["CaptureFixture", None, None]:
155
+ """
156
+ Context manager that creates a ``CaptureFixture`` instance for the
157
+ given ``request``, ensuring there is only a single one being requested
158
+ at the same time.
159
+
160
+ This is used as a helper with ``capsys``, ``capfd`` etc.
161
162
if self._capture_fixture:
163
other_name = next(
164
k
0 commit comments