I changed the _doctest.py line 2180 to:

        if failures:
            raise self.failureException(self.format_failure
(new.getvalue()).encode('UTF-8'))

Whitout this bug correction, the doctests with non ascii characters
doesn't work.

So your
>It says, instead write u'blah blah', which you are doing already.

doesn't work if your "blah" is "bláhž" for example.

> My question is:
Isn't it expected that the doctest fails if you change
a letter because then the output will disagree with
your modified string?

yes, it fails, but the point is, what shows the doctest. With the
above bug correction it show the real and expected unicode strings,
whitout the bug correction it shows an unicode exception
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to