Re: [Checkins] SVN: zope.app.testing/trunk/ Switch doctests to use the stdlib ``doctest`` module.
Adam GROSZER <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
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:[email protected]
--
Quote of the day:
Who is W. O. Baker, and why is he saying those terrible things about me?
_______________________________________________
Zope-Dev maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )