Hello Tres,

Thursday, June 3, 2010, 9:39:50 PM, you wrote:

TS>    If the tests contain non-ASCII characters, we have to specify which
TS>    encoding the file is encoded with. We do so by using the `encoding`
TS>    parameter:

TS>      >>> suite = doctest.DocFileSuite('test_doctest.txt',
TS>      ...                              'test_doctest2.txt',
TS>      ...                              'test_doctest4.txt',
TS>      ...                              encoding='utf-8')
TS>      >>> suite.run(unittest.TestResult())

eeeek, didn't know that. Thanks.

Best regards,
 Adam GROSZER                            mailto:agros...@gmail.com
Quote of the day:
Who is W. O. Baker, and why is he saying those terrible things about me?

Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to