This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nnorwitz
Recipients
Date 2007-06-01.05:16:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This happens on trunk, p3yk branch and 2.5.

Trying:
    doctest.testfile('test_doctest4.txt', encoding='utf-8')
Expecting:
    (0, 4)
test test_doctest crashed -- <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 301-302: ordinal not in range(128)
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 557, in runtest_inner
    indirect_test()
  File "/home/neal/python/dev/r25/Lib/test/test_doctest.py", line 2402, in test_main
    test_support.run_doctest(test_doctest, verbosity=True)
  File "/home/neal/python/dev/r25/Lib/test/test_support.py", line 467, in run_doctest
    f, t = doctest.testmod(module, verbose=verbosity)
  File "/home/neal/python/dev/r25/Lib/doctest.py", line 1799, in testmod
    runner.run(test)
  File "/home/neal/python/dev/r25/Lib/doctest.py", line 1345, in run
    return self.__run(test, compileflags, out)
  File "/home/neal/python/dev/r25/Lib/doctest.py", line 1261, in __run
    self.report_failure(out, test, example, got)
  File "/home/neal/python/dev/r25/Lib/doctest.py", line 1125, in report_failure
    self._checker.output_difference(example, got, self.optionflags))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 301-302: ordinal not in range(128)
History
Date User Action Args
2007-08-23 14:54:26adminlinkissue1729305 messages
2007-08-23 14:54:26admincreate