If the current item is using ``capsys`` or ``capfd``, activate them so they take precedence over the global capture.
(self)
| 707 | self._capture_fixture = None |
| 708 | |
| 709 | def activate_fixture(self) -> None: |
| 710 | """If the current item is using ``capsys`` or ``capfd``, activate |
| 711 | them so they take precedence over the global capture.""" |
| 712 | if self._capture_fixture: |
| 713 | self._capture_fixture._start() |
| 714 | |
| 715 | def deactivate_fixture(self) -> None: |
| 716 | """Deactivate the ``capsys`` or ``capfd`` fixture of this item, if any.""" |