[Zope-dev] [Checkins] SVN: zope.app.testing/trunk/ Switch	doctests to use the stdlib ``doctest`` module.
    Adam GROSZER 
    agroszer at gmail.com
       
    Mon Jun  7 07:55:02 EDT 2010
    
    
  
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:agroszer at gmail.com
--
Quote of the day:
Who is W. O. Baker, and why is he saying those terrible things about me?
    
    
More information about the Zope-Dev
mailing list