Hi,
testing 4.0.0 I'm getting the following error in with both python2
and python3 on x86_64 linux (LFS : gcc-7.2, python-2.7.13,
python-3.6.2, with libxml2-2.9.4, libxslt-1.1.29 AND on another
machine with libxml2-2.9.5, libxslt-1.1.30 with a fix so that
xslt-config --cflags works again), both with linux-4.13.1.
I will admit that I take a jaundiced view of testsuites, but now
that I've read your page on building from source I see you want to
know about failures ;)
ERROR: test_xmlschema_parse_fixed_attributes (lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/scratch/working/lxml-4.0.0/src/lxml/tests/test_xmlschema.py", line 217, in test_xmlschema_parse_fixed_attributes
parser=parser)
File "/scratch/working/lxml-4.0.0/src/lxml/tests/common_imports.py", line 164, in parse
return etree.parse(f, parser=parser)
File "src/lxml/etree.pyx", line 3441, in lxml.etree.parse
doc = _parseDocument(source, parser, base_url)
File "src/lxml/parser.pxi", line 1851, in lxml.etree._parseDocument
return _parseMemoryDocument(source.getvalue(), url, parser)
File "src/lxml/parser.pxi", line 1871, in lxml.etree._parseMemoryDocument
c_doc = _parseDoc(text, url, parser)
File "src/lxml/parser.pxi", line 1752, in lxml.etree._parseDoc
return (<_BaseParser>parser)._parseUnicodeDoc(text, c_filename)
File "src/lxml/parser.pxi", line 1066, in lxml.etree._BaseParser._parseUnicodeDoc
return context._handleParseResultDoc(self, result, None)
File "src/lxml/parser.pxi", line 598, in lxml.etree._ParserContext._handleParseResultDoc
return _handleParseResult(self, self._c_ctxt, result,
File "src/lxml/parser.pxi", line 709, in lxml.etree._handleParseResult
_raiseParseError(c_ctxt, filename, context._error_log)
File "src/lxml/parser.pxi", line 638, in lxml.etree._raiseParseError
raise error_log._buildParseException(
File "<string>", line 0
lxml.etree.XMLSyntaxError: Element 'b', attribute 'hardy': The value '(null)' does not match the fixed value constraint 'hey'.
On one build on the 2.9.4/1.1.29 system I also got two other
failures, which I cannot repeat (I ran it for real and logged it,
testing before and after only ever showed the above 1 error in each).
ERROR: test_etree_parse_io_error (lxml.tests.test_io.ETreeIOTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/scratch/working/lxml-4.0.0/src/lxml/tests/test_io.py", line 276, in test_etree_parse_io_error
dn = tempfile.mkdtemp(prefix=dirnameRU)
File "/usr/lib/python3.6/tempfile.py", line 368, in mkdtemp
_os.mkdir(file, 0o700)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-18: ordinal not in range(128)
and
ERROR: test_etree_parse_io_error (lxml.tests.test_io.ElementTreeIOTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/scratch/working/lxml-4.0.0/src/lxml/tests/test_io.py", line 276, in test_etree_parse_io_error
dn = tempfile.mkdtemp(prefix=dirnameRU)
File "/usr/lib/python3.6/tempfile.py", line 368, in mkdtemp
_os.mkdir(file, 0o700)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-18: ordinal not in range(128)
and similar in 2.7 - unless I'm missing something, these 2 error
reports are identical. To be clear, in that run python2 ran 1787
tests and reported
FAILED (errors=3)
while python3 ran 1800 tests with a similar count of errors.
ĸen
--
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
- Unseen Academicals