@contextmanager
def catch_stdout():
    old_out = sys.stdout
    out = six.StringIO()
    sys.stdout = out

    yield out

    sys.stdout = old_out
Sends an email to confirm the new email address.
dataset/ETHPy150Open itdxer/neupy/tests/utils.py/catch_stdout--crossover with--dataset/ETHPy150Open clione/django-kanban/src/core/userena/models.py/UserenaSignup.send_confirmation_email