[Grok-dev] Tests, Unicode and Fileencoding

Jan Ulrich Hasecke janulrich.hasecke at web.de
Sat Nov 17 15:12:59 EST 2007


Am 17.11.2007 um 17:50 schrieb Uli Fouquet:
>>
>             tearDown=cleanUpZope,
>             encoding='utf8', ## SET THE ENCODING HERE... ##
>             optionflags=doctest.ELLIPSIS+
>             doctest.NORMALIZE_WHITESPACE)
>         )
>     return suite
>
> would expect your doctest files all utf8 encoded.
>
Yes, this is a better solution than declaring the encoding in the files.
>
> Did you get ``UnicodeError`` before?
>
No, just a KeyError.

juh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Signierter Teil der Nachricht
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20071117/a61fcef8/PGP.bin


More information about the Grok-dev mailing list