Comment 6 for bug 935516

Revision history for this message
In , Idella4 (idella4) wrote :

Fixed by patches prepared upstream;
http://genshi.edgewall.org/ticket/500 & /501

The patch to HTMLParser for issue 13987 that landed in the cpython 2.7 branch breaks tests test_sanitize_remove_script_elem & test_sanitize_remove_src_javascript

dev-python/genshi $ USE_PYTHON="2.5 2.6 2.7 2.7-pypy-1.9" ebuild genshi-0.6.ebuild clean test

 * Testing of dev-python/genshi-0.6 with CPython 2.5...
----------------------------------------------------------------------
Ran 830 tests in 1.793s

OK
 * Testing of dev-python/genshi-0.6 with CPython 2.6...
----------------------------------------------------------------------
Ran 830 tests in 1.670s

OK
 * Testing of dev-python/genshi-0.6 with PyPy 1.9 (Python 2.7)...
----------------------------------------------------------------------
Ran 828 tests in 4.563s

OK

# The html_test.patch is needed only for python2.7 for now, breaks all other versions. The html.py needs
# adjusting only to pass the tests for 2.7. Other ABIs still need the original filters/tests/html.py,
# hence this long winded juggling appears the only method to set a viable genshi/filters/tests/html.py
# for each python version. The test needed patching, instead they changed the genshi/filters/tests/html.py

Anyone can reduce this feel free, but I don't seen upstream changing the test since they've instead made a fix to the html.py used in tests