Commit d445cba
: python/tests/test_actors.py: use context mgr for FD +sys.stdout/sys.stderr redirecction
Summary:
do the stdio redirection with a context manager too (promised follow-up in the preceding diff)
```
async def test_example() -> None:
with configured(
enable_log_forwarding=True, enable_file_capture=True, tail_log_lines=100
):
with redirected_stdio(capture_stderr=True) as (stdout_path, stderr_path):
...
```
Differential Revision: D874885861 parent 02db5a6 commit d445cba
1 file changed
+369
-547
lines changed
0 commit comments