diff --git a/tractor/_testing/pytest.py b/tractor/_testing/pytest.py index bfaebf0b..a579d546 100644 --- a/tractor/_testing/pytest.py +++ b/tractor/_testing/pytest.py @@ -647,13 +647,12 @@ def maybe_xfail_for_spawner( def maybe_override_capture( request: pytest.FixtureRequest, start_method: bool, -): +) -> str: if _is_forking_spawner(start_method): - return request.getfixturevalue('capsys') + request.getfixturevalue('capsys') + return 'sys' - return request.getfixturevalue( - request.config.option.capture - ) + return request.config.option.capture @pytest.fixture