Summary: | dev-python/lxml-3.{3.x,4.0}: fails tests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nikoli <nikoli> |
Component: | [OLD] Library | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Nikoli
2012-10-21 12:37:17 UTC
2.x versions are gone.
Here's what's in the tree at the moment:
$ ls
ChangeLog CVS lxml-3.3.5.ebuild lxml-3.3.6.ebuild lxml-3.4.0.ebuild lxml-3.4.1.ebuild lxml-3.4.2.ebuild Manifest metadata.xml
Now. Versions < 3.3.x all yield the same error:
>>> Test phase: dev-python/lxml-3.4.0
* python2_7: running distutils-r1_run_phase python_test
* Running test.py
======================================================================
FAIL: test_resolve_filename_dtd_relative (lxml.tests.test_etree.ETreeOnlyTestCase)
which is basically due to this:
freshmint tests # pwd
/var/tmp/portage/dev-python/lxml-3.4.0/work/lxml-3.4.0-python2_7/build/lib/lxml/tests
freshmint tests # grep 'file:' *
common_imports.py: 'file:', pathname2url(path))
grep: include: Is a directory
test_xslt.py: assertEqual(url, 'file://ANYTHING')
test_xslt.py: <xsl:copy-of select="document('file://ANYTHING')"/>
test_xslt.py: # now the same thing with a stylesheet base file:// URL
test_xslt.py: expected_url = 'file://BASE/DIR/test.xml'
test_xslt.py: base_url='file://BASE/DIR/FILE'))
What is this ? file:// ? Let's try knocking a patch together..
dev-python/lxml-3.4.1: src_test work fine for me. + 15 Mar 2015; Patrice Clement <monsieurp@gentoo.org> + +files/lxml-3.3.x-test_etree.py.patch, + +files/lxml-3.4.0-common_imports.py.patch, + +files/lxml-3.4.0-test_xslt.py.patch, lxml-3.3.5.ebuild, lxml-3.3.6.ebuild, + lxml-3.4.0.ebuild, lxml-3.4.1.ebuild, lxml-3.4.2.ebuild: + Patch broken tests in 3.3.x and 3.4.0 versions. Fix bug 439156. + Please have a go at it and let me know. It should work fine now. |