Changes between Initial Version and Version 1 of Ticket #25730, comment 4


Ignore:
Timestamp:
Nov 10, 2015, 11:31:19 PM (8 years ago)
Author:
Kevin Turner

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#ticket this example].
     1Returning 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].
    22
    33Those 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.
    44
    55Having 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)
Back to Top