Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447446 - dev-python/pyxml-0.8.4-r3 fails tests with python2.6+
Summary: dev-python/pyxml-0.8.4-r3 fails tests with python2.6+
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-16 12:31 UTC by Michał Górny
Modified: 2016-10-14 10:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log for py2.6 (build-python2.6.log,33.25 KB, text/plain)
2012-12-16 12:31 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-16 12:31:13 UTC
Created attachment 332466 [details]
Build log for py2.6

test_expatreader
test test_expatreader failed -- Traceback (most recent call last):
  File "/tmp/portage/dev-python/pyxml-0.8.4-r3/work/PyXML-0.8.4/test/test_expatreader.py", line 21, in setUp
    self.parser.setFeature(handler.feature_namespace_prefixes, 1)
  File "/usr/lib64/python2.6/xml/sax/expatreader.py", line 157, in setFeature
    "expat does not report namespace prefixes")
SAXNotSupportedException: expat does not report namespace prefixes

test_filter
test test_filter failed -- Writing: u'<?xml version="1.0" ?><doc><e>text<e/>moreabc</e>xyz</doc>', expected: '<?xml version="1.0" ?>\n<doc><e>text<e/>moreabc</e>xyz</doc'
test_howto
test test_howto crashed -- <type 'exceptions.AttributeError'> : 'module' object has no attribute 'DefaultHandler'

Most of the other tests are skipped.

4 tests OK.
5 tests failed: test_expatreader test_filter test_howto test_minidom test_xmlbuilder
12 tests skipped: test_c14n test_dom test_htmlb test_javadom test_marshal test_ns test_sax test_sax2 test_sax_xmlproc test_saxdrivers test_utils test_xmlproc

Same results for py2.6 & py2.7.
Comment 1 Rafał Mużyło 2012-12-16 17:36:57 UTC
Note, that it's sort of broken by design.

While there's a little functionality here not provided by python[xml], it's not very useful functionality.

Just search for bugs on pyxml from nearly two years ago - there where quite a few in that time period, most of them either simply dropping the dep or providing minimal patches (like i.e. dev-java/javatoolkit).
Comment 2 Patrice Clement gentoo-dev 2016-10-14 10:41:30 UTC
Tests pass now. Closing.