MCPcopy
hub / github.com/pytest-dev/pytest / pop_outerr_to_orig

Method pop_outerr_to_orig

src/_pytest/capture.py:657–666  ·  view source on GitHub ↗

Pop current snapshot out/err capture and flush to orig streams.

(self)

Source from the content-addressed store, hash-verified

655 self.err.start()
656
657 def pop_outerr_to_orig(self) -> tuple[AnyStr, AnyStr]:
658 """Pop current snapshot out/err capture and flush to orig streams."""
659 out, err = self.readouterr()
660 if out:
661 assert self.out is not None
662 self.out.writeorg(out)
663 if err:
664 assert self.err is not None
665 self.err.writeorg(err)
666 return out, err
667
668 def suspend_capturing(self, in_: bool = False) -> None:
669 self._state = "suspended"

Callers 2

stop_global_capturingMethod · 0.80
closeMethod · 0.80

Calls 2

readouterrMethod · 0.95
writeorgMethod · 0.45

Tested by

no test coverage detected