Changes between Initial Version and Version 1 of Ticket #25730, comment 4
- Timestamp:
- Nov 10, 2015, 11:31:19 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25730, comment 4
initial v1 1 Returning the wrong type will gum things up even if the content of that response is only ascii characters, as in [https:// code.djangoproject.com/ticket/25730#ticketthis example].1 Returning the wrong type will gum things up even if the content of that response is only ascii characters, as in [https://gist.github.com/keturn/125118cefce2a21d64e1 this example]. 2 2 3 3 Those format operations aren't always in places where you can change them over to all use `__unicode__`, because they're embedded in things like [https://github.com/python/cpython/blob/2.7/Lib/unittest/case.py#L691 TestCase messages], which is where I encountered it. 4 4 5 5 Having the test-failure message fail to format itself and crash is pretty annoying when you're trying to write or fix a test. 6 7 (edited to fix URL of example)