Using capsys instead of sys.out for pytest fixtures.