Bugs item #1729305, was opened at 2007-05-31 22:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1729305&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_doctest fails when run in verbose mode

Initial Comment:
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)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1729305&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to