Index: test/test_doctest.py =================================================================== --- test/test_doctest.py (revision 61049) +++ test/test_doctest.py (working copy) @@ -1,3 +1,4 @@ +# coding=utf-8 """ Test script for doctest. """ @@ -369,7 +370,7 @@ >>> tests = finder.find(sample_func) >>> print tests # doctest: +ELLIPSIS - [] + [] The exact name depends on how test_doctest was invoked, so allow for leading path components. @@ -2278,6 +2279,36 @@ >>> doctest.testfile('test_doctest4.txt', encoding='utf-8') TestResults(failed=0, attempted=4) + + >>> doctest.testfile('test_doctest4.txt', encoding='utf-8', verbose=True) + Trying: + u'föö' + Expecting: + u'f\xf6\xf6' + ok + Trying: + u'bąr' + Expecting: + u'b\u0105r' + ok + Trying: + 'föö' + Expecting: + 'f\xc3\xb6\xc3\xb6' + ok + Trying: + 'bąr' + Expecting: + 'b\xc4\x85r' + ok + 1 items passed all tests: + 4 tests in test_doctest4.txt + 4 tests in 1 items. + 4 passed and 0 failed. + Test passed. + *** DocTestRunner.merge: 'test_doctest4.txt' in both testers; summing outcomes. + TestResults(failed=0, attempted=4) + >>> doctest.master = None # Reset master. """