def parse_name_and_email_list(elements, encoding='utf-8'):
    if not elements:
        return []

    if isinstance(elements, string_types):
        return [parse_name_and_email(elements, encoding), ]

    if not isinstance(elements, (list, tuple)):
        raise TypeError("Can not parse_name_and_email_list from %s" % elements.__repr__())

    if len(elements) == 2:
        # Oops, it may be pair (name, email) or pair of emails [email1, email2]
        # Let's do some guesses
        if isinstance(elements, tuple):
            n, e = elements
            if isinstance(e, string_types) and (not n or isinstance(e, string_types)):
                # It is probably a pair (name, email)
                return [parse_name_and_email(elements, encoding), ]

    return [parse_name_and_email(x, encoding) for x in elements]
When not running under I{trial} L{None} is returned.
dataset/ETHPy150Open lavr/python-emails/emails/utils.py/parse_name_and_email_list--crossover with--dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_twisted.py/RedirectLogsForTrialTests.test_withoutTrialResult