IndexError message should not be checked (for Jython compatibility)
|Reported by:||Leo Soto M.||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Jython has a slightly different message for IndexErrors:
>>>  Traceback (most recent call last): File "<stdin>", line 1, in <module> IndexError: index out of range: 0
As it has information that is not present on CPython messages (the index which caused the error), Jython is not going to change this message to match exactly the CPython one.
The attached patch fixes the only place where the Django test suite is checking for the exact error message.