Skip to content

Commit

Permalink
try with a valid escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
gawel committed Jul 31, 2023
1 parent 3d140ef commit e51b9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pyquery.py
Expand Up @@ -857,7 +857,7 @@ def test_selector_with_xml(self):

def test_selector_html(self):
expected = 'What'
query = 'blah' if etree.LIBXML_VERSION < (2, 10, 4) else 'bar\:blah'
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 e51b9b6

Please sign in to comment.