[issue10492] test_doctest fails with iso-8859-15 locale
Antoine Pitrou
report at bugs.python.org
Sun Nov 21 18:24:04 CET 2010
New submission from Antoine Pitrou <pitrou at free.fr>:
$ LANG=ISO-8859-15 ./python -m test.regrtest test_doctest
[1/1] test_doctest
**********************************************************************
File "/home/antoine/py3k/__svn__/Lib/test/test_doctest.py", line 1676, in test.test_doctest.test_debug
Failed example:
try: doctest.debug_src(s)
finally: sys.stdin = real_stdin
Expected:
> <string>(1)<module>()
(Pdb) next
12
--Return--
> <string>(1)<module>()->None
(Pdb) print(x)
12
(Pdb) continue
Got:
> /home/antoine/py3k/__svn__/Lib/encodings/iso8859_15.py(15)decode()
-> return codecs.charmap_decode(input,errors,decoding_table)
(Pdb) next
--Return--
> /home/antoine/py3k/__svn__/Lib/encodings/iso8859_15.py(15)decode()->('<string>', 8)
-> return codecs.charmap_decode(input,errors,decoding_table)
(Pdb) print(x)
*** NameError: name 'x' is not defined
(Pdb) continue
12
**********************************************************************
1 items had failures:
1 of 4 in test.test_doctest.test_debug
***Test Failed*** 1 failures.
test test_doctest failed -- 1 of 429 doctests failed
1 test failed:
test_doctest
Also visible on the following buildbot:
http://www.python.org/dev/buildbot/all/builders/x86%20debian%20parallel%203.x/builds/934/steps/test/logs/stdio
----------
components: Library (Lib), Tests
messages: 121954
nosy: haypo, loewis, pitrou, tim_one
priority: normal
severity: normal
stage: needs patch
status: open
title: test_doctest fails with iso-8859-15 locale
type: behavior
versions: Python 3.1, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10492>
_______________________________________
More information about the Python-bugs-list
mailing list