[testing] auto-replay captured streams (#13803)

This commit is contained in:
Stas Bekman
2021-09-30 09:26:49 -07:00
committed by GitHub
parent 5f25855b3e
commit e1d1c7c087
2 changed files with 43 additions and 15 deletions

View File

@@ -1080,6 +1080,8 @@ If you need to capture both streams at once, use the parent :obj:`CaptureStd` cl
function_that_writes_to_stdout_and_stderr()
print(cs.err, cs.out)
Also, to aid debugging test issues, by default these context managers automatically replay the captured streams on exit
from the context.
Capturing logger stream