Skip to content

Commit

Permalink
Merge pull request #250 from kxxt/master
Browse files Browse the repository at this point in the history
test: allow libxml2 behavior change
  • Loading branch information
gawel committed Jul 31, 2023
2 parents ca86011 + eb3c391 commit b6ad9f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_pyquery.py
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 b6ad9f7

Please sign in to comment.