Ticket #7456: dont_check_index_error_msg.patch

File dont_check_index_error_msg.patch, 868 bytes (added by Leo Soto M., 10 years ago)
  • tests/regressiontests/forms/widgets.py

    # HG changeset patch
    # User Leonardo Soto <leo.soto@gmail.com>
    # Date 1213488481 14400
    # Branch doj
    # Node ID 4116f272a6a4381b2e69edd370de35f741cf9004
    # Parent  2dc83fe0c303824b2c77437e17c6ea0a122b1cc6
    Ignore exception detail for IndexError, where Jython provides a better message than CPython (includes the index which caused the error), so it is not going to be changed
    diff -r 2dc83fe0c303 -r 4116f272a6a4 tests/regressiontests/forms/widgets.py
    a b False 
    720720>>> r[1].name, r[1].value, r[1].choice_value, r[1].choice_label
    721721('beatle', u'J', u'P', u'Paul')
    722 >>> r[10]
     722>>> r[10] # doctest: +IGNORE_EXCEPTION_DETAIL
    723723Traceback (most recent call last):
    725725IndexError: list index out of range
Back to Top