Pop current snapshot out/err capture and flush to orig streams.
(self)
| 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" |
no test coverage detected