diff --git a/tests/test_pyquery.py b/tests/test_pyquery.py index 30018e1..cb6fbb4 100644 --- a/tests/test_pyquery.py +++ b/tests/test_pyquery.py @@ -857,7 +857,8 @@ def test_selector_with_xml(self): def test_selector_html(self): expected = 'What' - d = pq('blah', self.xml.split('?>', 1)[1], parser='html') + query = 'blah' if etree.LIBXML_VERSION < (2, 10, 4) else 'bar\:blah' + d = pq(query, self.xml.split('?>', 1)[1], parser='html') val = d.text() self.assertEqual(repr(val), repr(expected))