Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:saltstack:bundle:next:python311
saltbundlepy-lxml
fix-test_illegal_utf8_recover.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-test_illegal_utf8_recover.patch of Package saltbundlepy-lxml
--- a/src/lxml/tests/test_unicode.py +++ b/src/lxml/tests/test_unicode.py @@ -167,7 +167,11 @@ def test_illegal_utf8_recover(self): data = _bytes('<test>\x80\x80\x80</test>', encoding='iso8859-1') parser = etree.XMLParser(recover=True) - self.assertRaises(etree.XMLSyntaxError, etree.fromstring, data, parser) + if etree.LIBXML_VERSION >= (2, 12, 0): + tree = etree.fromstring(data, parser) + self.assertEqual('\ufffd\ufffd\ufffd', tree.text) + else: + self.assertRaises(etree.XMLSyntaxError, etree.fromstring, data, parser) def _test_encoding(self, encoding, xml_encoding_name=None): foo = """<?xml version='1.0' encoding='%s'?>\n<tag attrib='123'></tag>""" % (
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor