[New-bugs-announce] [issue23470] OpenBSD buildbot uses wrong stdlib

Serhiy Storchaka report at bugs.python.org
Mon Feb 16 09:18:36 CET 2015


New submission from Serhiy Storchaka:

Looks as OpenBSD buildbot imports xml.sax.saxutils from wrong place.

http://buildbot.python.org/all/builders/x86%20OpenBSD%205.5%202.7/builds/511/steps/test/logs/stdio

======================================================================
ERROR: test_xmlgen_encoding_bytes (test.test_sax.StringXmlgenTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/python-builds/2.7.borja-openbsd-x86/build/Lib/test/test_sax.py", line 297, in test_xmlgen_encoding_bytes
    gen.characters(u"\u20ac".encode(encoding))
  File "/usr/local/lib/python2.7/site-packages/_xmlplus/sax/saxutils.py", line 309, in characters
    writetext(self._out, content)
  File "/usr/local/lib/python2.7/site-packages/_xmlplus/sax/saxutils.py", line 188, in writetext
    stream.write(escape(text, entities))
  File "/home/python-builds/2.7.borja-openbsd-x86/build/Lib/codecs.py", line 357, in write
    data, consumed = self.encode(object, self.errors)
  File "/home/python-builds/2.7.borja-openbsd-x86/build/Lib/encodings/iso8859_15.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_table)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa4 in position 0: ordinal not in range(128)

saxutils.py is imported from /usr/local/lib/python2.7/ instead of the build directory. The error that causes UnicodeDecodeError was fixed in issue17606.

May be other test failures have the same cause.

----------
components: Tests
messages: 236094
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: OpenBSD buildbot uses wrong stdlib
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23470>
_______________________________________


More information about the New-bugs-announce mailing list