From e51b9b6f64989b2c8b106ee15875694d5c159d8c Mon Sep 17 00:00:00 2001 From: Gael Pasgrimaud Date: Mon, 31 Jul 2023 22:23:54 +0200 Subject: [PATCH] try with a valid escape sequence --- tests/test_pyquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pyquery.py b/tests/test_pyquery.py index cb6fbb4..73feb14 100644 --- a/tests/test_pyquery.py +++ b/tests/test_pyquery.py @@ -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))