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 a35800c commit 7a70428Copy full SHA for 7a70428
src/_pytest/capture.py
@@ -630,9 +630,8 @@ def resume_global_capture(self):
630
self._global_capturing.resume_capturing()
631
632
def suspend_global_capture(self, in_=False):
633
- cap = getattr(self, "_global_capturing", None)
634
- if cap is not None:
635
- cap.suspend_capturing(in_=in_)
+ if self._global_capturing is not None:
+ self._global_capturing.suspend_capturing(in_=in_)
636
637
def suspend(self, in_=False):
638
# Need to undo local capsys-et-al if it exists before disabling global capture.
0 commit comments