Skip to content

Commit

Permalink
test: allow libxml2 behavior change
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt committed Jun 5, 2023
1 parent ca86011 commit eb3c391
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_pyquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit eb3c391

Please sign in to comment.