Django

Code

Ticket #7456 (closed: fixed)

Opened 4 months ago

Last modified 4 months ago

IndexError message should not be checked (for Jython compatibility)

Reported by: leosoto Assigned to: nobody
Milestone: Component: Testing framework
Version: SVN Keywords: jython
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Jython has a slightly different message for IndexErrors?:

>>> [][0]
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.

Attachments

dont_check_index_error_msg.patch (0.8 kB) - added by leosoto on 06/14/08 19:14:12.

Change History

06/14/08 19:14:12 changed by leosoto

  • attachment dont_check_index_error_msg.patch added.

06/14/08 20:05:09 changed by Simon Greenhill

  • needs_better_patch changed.
  • stage changed from Unreviewed to Ready for checkin.
  • component changed from Uncategorized to Unit test system.
  • needs_tests changed.
  • needs_docs changed.

06/15/08 22:32:03 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [7646]) Fixed #7456 -- Removed check of exact IndexError? exception text in a unit test, for Jython compatibility. Thanks, leosoto


Add/Change #7456 (IndexError message should not be checked (for Jython compatibility))




Change Properties
Action