def _test_number_length_against_pattern(possible_re, national_number):
    match = fullmatch(possible_re, national_number)
    if match:
        return ValidationResult.IS_POSSIBLE
    search = possible_re.match(national_number)
    if search:
        return ValidationResult.TOO_LONG
    else:
        return ValidationResult.TOO_SHORT
Check that C{_ignoreErrors} actually causes errors to be ignored.
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py/_test_number_length_against_pattern--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_log.py/TestObserver.test_ignoreErrors